feat: Allow data imports larger than the standard attachment size (#4449)
* feat: Allow data imports larger than the standard attachment size * Use correct preset for data imports * Cleanup of expired attachments * lint
This commit is contained in:
@@ -73,7 +73,13 @@ class FileOperation extends IdModel {
|
||||
|
||||
expire = async function () {
|
||||
this.state = "expired";
|
||||
await deleteFromS3(this.key);
|
||||
try {
|
||||
await deleteFromS3(this.key);
|
||||
} catch (err) {
|
||||
if (err.retryable) {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
await this.save();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user