From 21e9b708786bee07f43586e545668a32e05824dd Mon Sep 17 00:00:00 2001 From: louisg1337 Date: Fri, 5 Jul 2024 17:52:05 -0400 Subject: [PATCH] Renamed clear data to something more accurate --- www/js/services/shareLocalDBFile.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/js/services/shareLocalDBFile.ts b/www/js/services/shareLocalDBFile.ts index 593b5c84e..1aae281b9 100644 --- a/www/js/services/shareLocalDBFile.ts +++ b/www/js/services/shareLocalDBFile.ts @@ -79,7 +79,7 @@ function localDBHelpers(fileName: string, fileExtension: string = '.txt') { }); } - function localClearData() { + function localClearTmpFile() { return new Promise((resolve, reject) => { window['resolveLocalFileSystemURL'](window['cordova'].file.cacheDirectory, (fs) => { fs.filesystem.root.getFile(fileName + fileExtension, null, (fileEntry) => { @@ -101,7 +101,7 @@ function localDBHelpers(fileName: string, fileExtension: string = '.txt') { return { copyFile: localCopyFile, shareData: localShareFile, - clearData: localClearData, + clearTmpFile: localClearTmpFile, }; } export async function sendLocalDBFile(database: string) { @@ -111,7 +111,7 @@ export async function sendLocalDBFile(database: string) { dataMethods .copyFile() .then(dataMethods.shareData) - .then(dataMethods.clearData) + .then(dataMethods.clearTmpFile) .then(() => { logDebug(`File Shared!`); })