Skip to content

Commit

Permalink
none functional updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AllStackDev1 committed Oct 24, 2024
1 parent f6aa0e1 commit 8bb76c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/configs/redis.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class RedisClient {
});

redisClient.on('reconnecting', () => {
logger.info('Redis client is reconnected');
logger.info('Redis client is reconnecting');
});

return redisClient;
Expand Down
2 changes: 1 addition & 1 deletion src/middlewares/corsHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({});
}

Expand Down

0 comments on commit 8bb76c1

Please sign in to comment.