Compare commits

...

6 Commits

Author SHA1 Message Date
Alessio Gravili
764c42eb80 fix: checkDocumentLockStatus transaction errors 2025-02-19 11:18:59 -07:00
Alessio Gravili
7626ff4635 test 2025-02-19 01:26:55 -07:00
Alessio Gravili
9595e74153 test 2025-02-19 01:17:35 -07:00
Alessio Gravili
58243a20e2 test 2025-02-19 01:15:54 -07:00
Alessio Gravili
a62d86fd15 Merge branch 'main' into fix/checkDocumentLockStatus 2025-02-19 00:45:11 -07:00
Alessio Gravili
0a664f9bac fix: db transaction errors caused by checkDocumentLockStatus 2025-02-18 21:21:23 -07:00

View File

@@ -63,7 +63,7 @@ export const checkDocumentLockStatus = async ({
collection: 'payload-locked-documents',
limit: 1,
pagination: false,
req,
//req,
sort: '-updatedAt',
where: lockedDocumentQuery,
})
@@ -93,7 +93,7 @@ export const checkDocumentLockStatus = async ({
// Perform the delete operation regardless of overrideLock status
await payload.db.deleteMany({
collection: 'payload-locked-documents',
req,
req, //
where: lockedDocumentQuery,
})
}