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