🐛(backend) race condition create doc

When 2 docs are created almost at the same time,
the second one will fail because the first one.
We get a unicity error on the path key already
used ("impress_document_path_key").
To fix this issue, we will lock the table the
time to create the document, the next query will
wait for the lock to be released.
This commit is contained in:
Anthony LC
2025-02-12 10:13:41 +01:00
parent 3bf33d202a
commit 4307b4f433
5 changed files with 129 additions and 2 deletions

View File

@@ -145,6 +145,10 @@ and this project adheres to
- 🐛(email) invitation emails in receivers language
## Fixed
- 🐛(backend) race condition create doc #633
## [2.2.0] - 2025-02-10
## Added