From 0a82fe0a31d02a0df35a2e90c926f29aede9f584 Mon Sep 17 00:00:00 2001 From: nicholas-yong <40938341+nicholas-yong@users.noreply.github.com> Date: Fri, 3 Nov 2023 02:59:57 +0800 Subject: [PATCH] Update autotag_s3_worker.js (#118) --- src/workers/autotag_s3_worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/autotag_s3_worker.js b/src/workers/autotag_s3_worker.js index c3e580a..5b61940 100644 --- a/src/workers/autotag_s3_worker.js +++ b/src/workers/autotag_s3_worker.js @@ -29,7 +29,7 @@ class AutotagS3Worker extends AutotagDefaultWorker { Bucket: this.getBucketName(), }, (err, res) => { if (err) { - if (err.code === 'NoSuchTagSet' && err.statusCode === 404) { + if (err.Code === 'NoSuchTagSet' && err.statusCode === 404) { resolve([]); } else { reject(err);