Fix crash on unlink failure
This commit is contained in:
parent
13fc448487
commit
5e9f2fccee
@ -49,7 +49,7 @@ export class Uploads {
|
||||
|
||||
static async removeUpload(subject: Upload) {
|
||||
try {
|
||||
unlink(join(Uploads.uploads, subject.file));
|
||||
await unlink(join(Uploads.uploads, subject.file));
|
||||
} catch {
|
||||
// ignore unlink error
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user