From ca84f65b6f1369e7fe40eaaa21a635d1bea6e1f7 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Thu, 31 Mar 2022 23:35:41 +0000 Subject: [PATCH] #269 reduce S3 usage - clean up unused cards --- server/cleanupImages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cleanupImages.js b/server/cleanupImages.js index 10b86c284..b8735fbfa 100644 --- a/server/cleanupImages.js +++ b/server/cleanupImages.js @@ -18,7 +18,7 @@ async function cleanup() { FROM users WHERE avatarSource LIKE 'https://pronouns-page.s3-eu-west-1.amazonaws.com/images/%'` )) { - avatars[row.avatarSource.match('https://pronouns-page.s3-eu-west-1.amazonaws.com/images/(.*)-thumb.png')[1]] = true; + avatars[row.avatarSource.match('https://pronouns-page.s3.eu-west-1.amazonaws.com/images/(.*)-thumb.png')[1]] = true; } const flags = {};