fix: refs #7028 fix confirm deny #3290

Merged
carlossa merged 23 commits from 7028-itemRequestConfDeny into dev 2024-12-16 10:59:56 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 1970b9c0db - Show all commits

View File

@ -42,7 +42,7 @@ module.exports = Self => {
try {
const userId = ctx.req.accessToken.userId;
const worker = await models.Worker.findById({where: {id: userId}}, myOptions);
const worker = await models.Worker.findById(userId, myOptions);
carlossa marked this conversation as resolved Outdated
Outdated
Review

findById

findById
if (!worker) throw new Error('Worker not found');
carlossa marked this conversation as resolved Outdated
Outdated
Review

Traducir

Traducir
Outdated
Review

(userId, {fields: ...}, myOptions);

`(userId, {fields: ...}, myOptions);`
const params = {