From 01d872cc1b0c27119cb7f4b382210905418e8563 Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 1 Apr 2022 00:34:41 +0200 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 10b86c28..b8735fbf 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 = {};