Fix race condition on emailing for new proposition #51

Merged
ignisf merged 1 commits from fix-proposition-email into master 2024-09-22 23:02:27 +03:00
Owner

There was a race condition with emails attempted to be sent before the proposition was committed to the database, resulting in errors as no such proposition_id was in the database.

This commit will change the logic to send the email after the create transaction has been committed.

image

image

There was a race condition with emails attempted to be sent before the proposition was committed to the database, resulting in errors as no such `proposition_id` was in the database. This commit will change the logic to send the email after the `create` transaction has been committed. ![image](/attachments/cf3fa4c4-a1e2-42cd-a578-7f79c18b93d2) ![image](/attachments/0bbc2922-a071-45e5-9035-8fbd3ae52e6b)
tochev added 1 commit 2024-09-22 22:57:17 +03:00
ignisf merged commit ef5935bd85 into master 2024-09-22 23:02:27 +03:00
ignisf deleted branch fix-proposition-email 2024-09-22 23:02:27 +03:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Site/clarion#51
No description provided.