8355-testToMaster #3336
|
@ -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);
|
||||
if (!worker) throw new Error('Worker not found');
|
||||
|
||||
const params = {
|
||||
|
|
Loading…
Reference in New Issue