From c4a2ce20c65f5823439b4ae4d03ce2bb1d5b62c5 Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Mon, 6 Feb 2023 16:07:23 -0300 Subject: [PATCH] Regression: Adds idempotent prop to delete audio (#4862) --- app/lib/methods/audioFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/methods/audioFile.ts b/app/lib/methods/audioFile.ts index 2c0f7ab5d..ac3c135ae 100644 --- a/app/lib/methods/audioFile.ts +++ b/app/lib/methods/audioFile.ts @@ -52,7 +52,7 @@ export const deleteAllAudioFiles = async (serverUrl: string): Promise => { try { const serverUrlParsed = sanitizeString(serverUrl); const path = `${FileSystem.documentDirectory}audios/${serverUrlParsed}`; - await FileSystem.deleteAsync(path); + await FileSystem.deleteAsync(path, { idempotent: true }); } catch (error) { log(error); }