🎨 Convert id bigint to string
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user