feat: only upload in prod
This commit is contained in:
parent
fc344837cf
commit
ade92f7ec1
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ module.exports = async function () {
|
||||||
charts.artists = _.orderBy(Object.values(charts.artists), ['plays'], ['desc']).splice(0, 8)
|
charts.artists = _.orderBy(Object.values(charts.artists), ['plays'], ['desc']).splice(0, 8)
|
||||||
charts.albums = _.orderBy(Object.values(charts.albums), ['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(
|
await client.send(
|
||||||
new PutObjectCommand({
|
new PutObjectCommand({
|
||||||
Bucket: WASABI_BUCKET,
|
Bucket: WASABI_BUCKET,
|
||||||
|
|
Reference in a new issue