From 7ea0e9ee11a74a1a9fedb83b384966db8a4b363e Mon Sep 17 00:00:00 2001 From: nielm Date: Fri, 24 Nov 2023 17:52:37 +0100 Subject: [PATCH] Fix config.js --- cloudrun-malware-scanner/config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudrun-malware-scanner/config.js b/cloudrun-malware-scanner/config.js index 2450785..e695734 100644 --- a/cloudrun-malware-scanner/config.js +++ b/cloudrun-malware-scanner/config.js @@ -40,8 +40,8 @@ const Config = null; const storage = new Storage({userAgent: `${pkgJson.name}/${pkgJson.version}`}); /** - * Read configuration from JSON configuration file. - * and store in BUCKET_CONFIG global + * Read configuration from JSON configuration file, verify + * and return a Config object * * @async * @param {string} configFile @@ -74,7 +74,7 @@ async function readAndVerifyConfig(configFile) { // Check buckets are specified and exist. let success = true; for (let x = 0; x < config.buckets.length; x++) { - const buckets = BUCKET_CONFIG.buckets[x]; + const buckets = config.buckets[x]; for (const bucketType of ['unscanned', 'clean', 'quarantined']) { if ( !(await checkBucketExists( buckets[bucketType],