updat users
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user