refs #6915 test_master24_8 #2067

Merged
alexm merged 561 commits from test_master24_8 into master 2024-02-22 07:31:34 +00:00
1 changed files with 6 additions and 4 deletions
Showing only changes of commit 65756f98ad - Show all commits

View File

@ -33,6 +33,11 @@ module.exports = Self => {
}
try {
const dmsTypeCmr = await models.DmsType.findOne({
where: {code: 'cmr'},
fields: ['id']
}, myOptions);
for (const ticketId of tickets) {
const ticket = await models.Ticket.findById(ticketId, myOptions);
@ -43,10 +48,7 @@ module.exports = Self => {
relation: 'dms',
fields: ['dmsFk'],
scope: {
relation: 'dmsType',
scope: {
where: {code: 'cmr'}
}
where: {dmsTypeFk: dmsTypeCmr.id}
}
}
}, myOptions);