This commit is contained in:
parent
1090a78e10
commit
576641d09d
|
@ -43,7 +43,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const userId = ctx.req.accessToken.userId;
|
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 = {
|
const params = {
|
||||||
isOk: false,
|
isOk: false,
|
||||||
|
|
Loading…
Reference in New Issue