From 1559514c61b119b6b4ba655f35512024fc046bf3 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 12 Jan 2024 14:54:15 +0800 Subject: [PATCH] Await on secrets loading --- pkg/bull-queue-admin/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/bull-queue-admin/index.js b/pkg/bull-queue-admin/index.js index bb042aa0a..48b7d1964 100644 --- a/pkg/bull-queue-admin/index.js +++ b/pkg/bull-queue-admin/index.js @@ -43,7 +43,7 @@ passport.deserializeUser((user, cb) => { }) const run = async () => { - const secrets = readYamlFile(process.env.SECRETS_FILE) + const secrets = await readYamlFile(process.env.SECRETS_FILE) const redisOptions = () => { if (secrets.REDIS_URL?.startsWith('rediss://') && secrets.REDIS_CERT) { return { @@ -59,7 +59,6 @@ const run = async () => { } } - console.log('secrets: ', secrets) const connection = new Redis(secrets.REDIS_URL, redisOptions()) const rssRefreshFeed = new QueueMQ('rssRefreshFeed', { connection: connection,