handling all of the stuff with header logout and handling better jwttoken

This commit is contained in:
talksik
2022-04-01 13:48:30 -04:00
parent c769f40a15
commit 7d8d05ad39
13 changed files with 58 additions and 65 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import { collections } from "./database.service";
export class UserService {
static async getUserById(userId: string) {
const query = { _id: userId };
const query = { _id: new ObjectId(userId) };
const res = await collections.users?.findOne(query);