This commit is contained in:
parent
1090a78e10
commit
576641d09d
|
@ -43,7 +43,7 @@ module.exports = Self => {
|
|||
|
||||
try {
|
||||
const userId = ctx.req.accessToken.userId;
|
||||
const worker = await models.Worker.findById(userId, myOptions);
|
||||
const worker = await models.Worker.findById(userId, {fields: ['id']}, myOptions);
|
||||
|
||||
const params = {
|
||||
isOk: false,
|
||||
|
|
Loading…
Reference in New Issue