fixes #5507 this.vnConfig no tiene datos cargados al inicio de la aplicación #1565

Merged
alexandre merged 9 commits from 5507-loadConfigAtStart into dev 2023-06-07 06:30:10 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit b036b1f7df - Show all commits

View File

@ -48,7 +48,7 @@ module.exports = Self => {
try {
let buy = await models.Buy.findOne({where: {entryFk: args.id}}, myOptions);
if (buy)
await buy.updateAttribute('printedStickers', args.printedStickers);
await buy.updateAttribute('printedStickers', args.printedStickers, myOptions);
else {
const userConfig = await models.UserConfig.findById(userId, {fields: ['warehouseFk']}, myOptions);
await Self.rawSql(