fix: refs #6942 delete
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-03-06 09:56:22 +01:00
parent f78f8ab6b0
commit b5e8184489
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ module.exports = Self => {
if (bookEntry) { if (bookEntry) {
accountingEntries = await models.Xdiario.count({ASIEN: bookEntry}, myOptions); accountingEntries = await models.Xdiario.count({ASIEN: bookEntry}, myOptions);
await models.Xdiario.destroyAll({ASIEN: bookEntry}, myOptions);
await models.Xdiario.destroyAll({where: {ASIEN: bookEntry}}, myOptions);
} else { } else {
const linkedBookEntry = await models.Xdiario.findOne({ const linkedBookEntry = await models.Xdiario.findOne({
fields: ['ASIEN'], fields: ['ASIEN'],