fix backend ESLint

This commit is contained in:
Hazelnoot 2025-10-03 12:58:15 -04:00
parent 3fc17fd0ee
commit 86a8614ef8
9 changed files with 59 additions and 143 deletions

View file

@ -12,7 +12,7 @@ const config = loadConfig();
// createPostgresDataSource handles primaries and replicas automatically.
// usually, it only opens connections first use, so we force it using
// .initialize()
async function connectToPostgres(){
async function connectToPostgres() {
const source = createPostgresDataSource(config);
await source.initialize();
await source.destroy();
@ -32,10 +32,8 @@ async function connectToRedis(redisOptions) {
try {
await redis.connect();
resolve();
} catch (e) {
reject(e);
} finally {
redis.disconnect(false);
}