🎨 Convert id bigint to string

This commit is contained in:
Flam3rboy
2021-04-06 18:02:10 +02:00
parent 79894e6f27
commit 7089287016
18 changed files with 83 additions and 63 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export async function Authentication(req: Request, res: Response, next: NextFunc
const decoded: any = await checkToken(req.headers.authorization);
req.token = decoded;
req.user_id = BigInt(decoded.id);
req.user_id = decoded.id;
return next();
} catch (error) {
return next(new HTTPError(error.toString(), 400));