Store directory size cache inside eris-fleet central store

This commit is contained in:
Essem 2022-07-19 23:27:43 -05:00
parent ffa22852bc
commit 1713387ffd
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
4 changed files with 14 additions and 11 deletions

View file

@ -40,7 +40,7 @@ export default async (client, cluster, worker, ipc, interaction) => {
}
if (result.file.length > fileSize) {
if (process.env.TEMPDIR && process.env.TEMPDIR !== "") {
await upload(client, result, interaction, true);
await upload(client, ipc, result, interaction, true);
} else {
await interaction[replyMethod]("The resulting image was more than 8MB in size, so I can't upload it.");
}

View file

@ -129,7 +129,7 @@ export default async (client, cluster, worker, ipc, message) => {
}
if (result.file.length > fileSize) {
if (process.env.TEMPDIR && process.env.TEMPDIR !== "") {
await upload(client, result, message);
await upload(client, ipc, result, message);
} else {
await client.createMessage(message.channel.id, "The resulting image was more than 8MB in size, so I can't upload it.");
}