feat: only upload in prod

This commit is contained in:
Cory Dransfeldt 2023-07-21 14:34:42 -07:00
parent fc344837cf
commit ade92f7ec1
No known key found for this signature in database

View file

@ -226,7 +226,7 @@ module.exports = async function () {
charts.artists = _.orderBy(Object.values(charts.artists), ['plays'], ['desc']).splice(0, 8)
charts.albums = _.orderBy(Object.values(charts.albums), ['plays'], ['desc']).splice(0, 8)
if (!_.isEmpty(diffedTracks)) {
if (!_.isEmpty(diffedTracks) && process.env.ELEVENTY_PRODUCTION === 'true') {
await client.send(
new PutObjectCommand({
Bucket: WASABI_BUCKET,