8355-testToMaster #3336

Merged
alexm merged 241 commits from 8355-testToMaster into master 2025-01-07 06:44:57 +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 { try {
const userId = ctx.req.accessToken.userId; const userId = ctx.req.accessToken.userId;
const worker = await models.Worker.findById({where: {id: userId}}, myOptions); const worker = await models.Worker.findById(userId, myOptions);
if (!worker) throw new Error('Worker not found'); if (!worker) throw new Error('Worker not found');
const params = { const params = {