#269 reduce S3 usage - clean up unused cards
This commit is contained in:
parent
1de23bf8b6
commit
01d872cc1b
|
@ -18,7 +18,7 @@ async function cleanup() {
|
||||||
FROM users
|
FROM users
|
||||||
WHERE avatarSource LIKE 'https://pronouns-page.s3-eu-west-1.amazonaws.com/images/%'`
|
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 = {};
|
const flags = {};
|
||||||
|
|
Reference in New Issue