feat: refs #6760 refs #actualiza campo nickname #2883

Merged
jgallego merged 3 commits from 6760-transferClient into dev 2024-08-28 10:38:46 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit b00070fd1a - Show all commits

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,