mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:46:45 +00:00
feat: log user id
This commit is contained in:
parent
c9baf3f02c
commit
dcb5a71b92
@ -29,9 +29,11 @@ async function findUserByToken(ctx: Context) {
|
||||
id: userId,
|
||||
},
|
||||
});
|
||||
ctx.logger.info(`Current user id: ${userId}`);
|
||||
return user;
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
ctx.logger.error(error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user