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;
// Schedule to remove current token
setTimeout(() => {
Self.logout(token.id);
setTimeout(async() => {
if (await models.AccessToken.findById(token.id))
await Self.logout(token.id);
}, courtesyTime * 1000);
// Get scopes

View File

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