diff --git a/src/configs/redis.config.ts b/src/configs/redis.config.ts index 88407c9..df970b2 100644 --- a/src/configs/redis.config.ts +++ b/src/configs/redis.config.ts @@ -39,7 +39,7 @@ export class RedisClient { }); redisClient.on('reconnecting', () => { - logger.info('Redis client is reconnected'); + logger.info('Redis client is reconnecting'); }); return redisClient; diff --git a/src/middlewares/corsHandler.ts b/src/middlewares/corsHandler.ts index 2d1cc83..4112e95 100644 --- a/src/middlewares/corsHandler.ts +++ b/src/middlewares/corsHandler.ts @@ -9,7 +9,7 @@ export function corsHandler(req: Request, res: Response, next: NextFunction) { res.header('Access-Control-Allow-Credentials', 'true'); if (req.method === 'OPTIONS') { - res.header('Access-Control-Allow-Methods', 'PUT, POST, PATCH, DELETE, GET'); + res.header('Access-Control-Allow-Methods', 'GET, PUT, POST, PATCH, DELETE'); return res.status(200).json({}); }