[management] add nil handling for route domains (#4366)

This commit is contained in:
Pascal Fischer
2025-08-19 11:35:03 +02:00
committed by GitHub
parent a889c4108b
commit 5d361b5421
2 changed files with 9 additions and 2 deletions

View File

@@ -290,6 +290,9 @@ func (am *DefaultAccountManager) DeleteRoute(ctx context.Context, accountID stri
return transaction.DeleteRoute(ctx, accountID, string(routeID))
})
if err != nil {
return fmt.Errorf("failed to delete route %s: %w", routeID, err)
}
am.StoreEvent(ctx, userID, string(route.ID), accountID, activity.RouteRemoved, route.EventMeta())