submessage: Add 'durable=True' to the outermost transaction.

This commit is contained in:
Prakhar Pratyush 2024-09-26 16:28:10 +05:30 committed by Tim Abbott
parent d5b8193a0a
commit 388464fcf4
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ from zerver.models import UserProfile
# transaction.atomic is required since we use FOR UPDATE queries in access_message.
@transaction.atomic
@transaction.atomic(durable=True)
@typed_endpoint
def process_submessage(
request: HttpRequest,