Fix crash on unlink failure

This commit is contained in:
Evert Prants 2024-11-23 18:05:43 +02:00
parent 13fc448487
commit 5e9f2fccee
Signed by: evert
GPG Key ID: 0960A17F9F40237D

View File

@ -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
}