fix: Lock contention on documents.create (#13149)

* wip

* fix: Lock contention on documents.create

* revert
This commit is contained in:
Tom Moor
2026-07-26 17:35:15 -04:00
committed by GitHub
parent 84c4cbc431
commit fc40988891
+1 -1
View File
@@ -1088,7 +1088,7 @@ class Document extends ArchivableModel<
const collection = await Collection.findByPk(this.collectionId, {
includeDocumentStructure: true,
transaction,
lock: Transaction.LOCK.UPDATE,
lock: Transaction.LOCK.NO_KEY_UPDATE,
});
if (collection) {