From c5bbc9ea3ecdaf0533bca161d5962e22f37c607b Mon Sep 17 00:00:00 2001 From: conganhhcmus Date: Mon, 25 Mar 2024 01:30:41 +0700 Subject: [PATCH] fix: update token key --- src/constants/auth.ts | 4 ++-- src/models/wishList.ts | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 src/models/wishList.ts diff --git a/src/constants/auth.ts b/src/constants/auth.ts index 502d309..a61183d 100644 --- a/src/constants/auth.ts +++ b/src/constants/auth.ts @@ -1,3 +1,3 @@ -export const TOKEN_KEY = 'token'; +export const TOKEN_KEY = 'X-Token'; -export const REFRESH_TOKEN_KEY = 'refresh_token'; +export const REFRESH_TOKEN_KEY = 'X-Refresh-Token'; diff --git a/src/models/wishList.ts b/src/models/wishList.ts deleted file mode 100644 index 5b1773b..0000000 --- a/src/models/wishList.ts +++ /dev/null @@ -1,8 +0,0 @@ -import mongoose, { Types } from 'mongoose'; - -const WishListSchema = new mongoose.Schema({ - comicId: { type: Types.ObjectId, required: true }, - userId: { type: Types.ObjectId, required: true }, -}); - -export default mongoose.model('WishList', WishListSchema);