Merge branch 'dev' into 6760-transferClient
gitea/salix/pipeline/pr-dev Build queued... Details

This commit is contained in:
Javier Segarra 2024-08-27 06:19:44 +00:00
commit b00070fd1a
2 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,9 @@ module.exports = Self => {
return token; return token;
// Schedule to remove current token // Schedule to remove current token
setTimeout(() => { setTimeout(async() => {
Self.logout(token.id); if (await models.AccessToken.findById(token.id))
await Self.logout(token.id);
}, courtesyTime * 1000); }, courtesyTime * 1000);
// Get scopes // Get scopes

View File

@ -1,4 +1,3 @@
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL; const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
const buildFilter = require('vn-loopback/util/filter').buildFilter; const buildFilter = require('vn-loopback/util/filter').buildFilter;
const mergeFilters = require('vn-loopback/util/filter').mergeFilters; const mergeFilters = require('vn-loopback/util/filter').mergeFilters;
@ -134,7 +133,7 @@ module.exports = Self => {
const stmts = []; const stmts = [];
const stmt = new ParameterizedSQL(` const stmt = new ParameterizedSQL(`
SELECT fp.id, SELECT DISTINCT fp.id,
fp.itemFk, fp.itemFk,
fp.warehouseFk, fp.warehouseFk,
fp.rate2, fp.rate2,