Merge pull request #16472 from molund/molund-patch-1

This commit is contained in:
Marc 2023-04-24 10:59:00 +02:00 committed by GitHub
commit 7bdbd665af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ const deleteRelations = async ({
.transacting(trx)
.execute();
done = batchToDelete.length < batchSize;
lastId = batchToDelete[batchToDelete.length - 1]?.id;
lastId = batchToDelete[batchToDelete.length - 1]?.id || 0;
const batchIds = map(inverseJoinColumn.name, batchToDelete);