mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-26 08:47:36 +08:00
removed unnecessary type cast
This commit is contained in:
parent
f07a6dd656
commit
6c6ebc2a24
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ function checkUserPermissions(
|
|||
try {
|
||||
const { uid } = req.ctx.decodedToken;
|
||||
|
||||
const userData = (await getUser(uid)) as unknown as MonkeyTypes.User;
|
||||
const userData = await getUser(uid);
|
||||
const hasPermission = criteria(userData);
|
||||
|
||||
if (!hasPermission) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue