hotfix clientUnpaid #1380

Merged
joan merged 1 commits from hotfix-clientUnpaid into master 2023-03-09 08:06:30 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ module.exports = function(Self) {
const data = await Self.rawSql(query, [id, date], myOptions);
client.debt = data[0].debt;
client.unpaid = await Self.app.models.ClientUnpaid.findOne({id}, myOptions);
client.unpaid = await Self.app.models.ClientUnpaid.findById(id, null, myOptions);
return client;
};