updat users

This commit is contained in:
2025-11-28 11:41:06 -03:00
parent c8e323163d
commit 2b0efc654a
10 changed files with 196 additions and 78 deletions

View File

@@ -173,6 +173,9 @@ def primary(
now_ = now()
expr = 'SET email_primary = :email_primary, updated_at = :now'
if new_email == old_email:
return JSONResponse(status_code=HTTPStatus.NO_CONTENT)
with dyn.transact_writer() as transact:
# Set the old email as non-primary
transact.update(