This commit is contained in:
parent
f78f8ab6b0
commit
b5e8184489
|
@ -49,8 +49,7 @@ module.exports = Self => {
|
|||
|
||||
if (bookEntry) {
|
||||
accountingEntries = await models.Xdiario.count({ASIEN: bookEntry}, myOptions);
|
||||
|
||||
await models.Xdiario.destroyAll({where: {ASIEN: bookEntry}}, myOptions);
|
||||
await models.Xdiario.destroyAll({ASIEN: bookEntry}, myOptions);
|
||||
} else {
|
||||
const linkedBookEntry = await models.Xdiario.findOne({
|
||||
fields: ['ASIEN'],
|
||||
|
|
Loading…
Reference in New Issue