This commit is contained in:
parent
f78f8ab6b0
commit
b5e8184489
|
@ -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'],
|
||||||
|
|
Loading…
Reference in New Issue