fix(security.gbalib): Transfer issues fixed.

This commit is contained in:
Rodrigo Rodriguez 2021-12-08 15:44:03 -03:00
parent 660faafb53
commit 6ebd38d3eb

View file

@ -139,7 +139,7 @@ export class SecService extends GBService {
} }
}); });
if (agentSystemId === null) { if (agentSystemId === null && user.agentSystemId ) {
const agent = await GuaribasUser.findOne({ const agent = await GuaribasUser.findOne({
where: { where: {
userSystemId: user.agentSystemId userSystemId: user.agentSystemId