mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
top level await, redis error handling, log format
This commit is contained in:
3
index.ts
3
index.ts
@@ -13,7 +13,6 @@ import { RedisStore } from "connect-redis";
|
||||
import { redisClient } from "./config/redis.ts";
|
||||
|
||||
import { sessionName } from "./constants.ts";
|
||||
import seqConn from "./models/index.ts";
|
||||
|
||||
import { isAuthenticated } from "./middleware/authCheck.ts";
|
||||
import { getCurrentUsersProfile } from "./api/spotify.ts";
|
||||
@@ -129,8 +128,6 @@ const cleanupFunc = (signal?: string) => {
|
||||
if (signal) logger.debug(`${signal} signal received, shutting down now...`);
|
||||
|
||||
Promise.allSettled([
|
||||
redisClient.disconnect,
|
||||
seqConn.close,
|
||||
promisify(server.close),
|
||||
]).then(() => {
|
||||
logger.info("Cleaned up, exiting.");
|
||||
|
||||
Reference in New Issue
Block a user