fix: serialize delegations and repair verification

This commit is contained in:
bryanpedini committed 2026-11-19 15:46:12 +01:00
1 parent 99fa5de747
commit 5f17aab6ca
8 files changed
+99 -43

No files matched your search

+2 -2
View File
@@ -241,7 +241,7 @@ func handleDelegationGrant(ctx context.Context, c *apiContext) (apiResponse, err
if err != nil {
return apiResponse{}, err
}
err = c.Server.store.InTx(ctx, func(tx webTx) error {
err = c.Server.store.InZoneTx(ctx, c.Zone, c.Server.log, func(tx webTx) error {
if err := requireZone(ctx, tx.ZoneExists, c.Zone); err != nil {
return err
}
@@ -274,7 +274,7 @@ func handleDelegationRevoke(ctx context.Context, c *apiContext) (apiResponse, er
if err != nil {
return apiResponse{}, err
}
err = c.Server.store.InTx(ctx, func(tx webTx) error {
err = c.Server.store.InZoneTx(ctx, c.Zone, c.Server.log, func(tx webTx) error {
u, err := activeTargetForUpdate(ctx, c, tx, username)
if err != nil {
return err