core: fix reset attachment failed status

This commit is contained in:
Ammar Ahmed
2024-08-16 16:27:24 +05:00
parent a73bff83fa
commit f1c201dca9

View File

@@ -351,7 +351,7 @@ export class Attachments implements ICollection {
markAsFailed(id: string, reason?: string) {
return this.collection.update([id], {
failed: reason
failed: !reason ? null : reason
});
}