Skip to content

Commit 838783e

Browse files
committed
write operations
1 parent 0f14b2b commit 838783e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/server/src/simcore_service_webserver/login/_confirmation_repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def create_confirmation(
4242
data: str | None = None,
4343
) -> Confirmation:
4444
"""Create a new confirmation token for a user action."""
45-
async with pass_or_acquire_connection(self.engine, connection) as conn:
45+
async with transaction_context(self.engine, connection) as conn:
4646
# Generate unique code
4747
while True:
4848
# NOTE: use only numbers since front-end does not handle well url encoding
@@ -108,7 +108,7 @@ async def delete_confirmation(
108108
confirmations.c.code == confirmation.code
109109
)
110110

111-
async with pass_or_acquire_connection(self.engine, connection) as conn:
111+
async with transaction_context(self.engine, connection) as conn:
112112
await conn.execute(query)
113113

114114
async def delete_confirmation_and_user(

0 commit comments

Comments
 (0)