fix backend ESLint
This commit is contained in:
parent
3fc17fd0ee
commit
86a8614ef8
9 changed files with 59 additions and 143 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue