mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Fix the issue where cache files are not deleted.
This commit is contained in:
@@ -118,6 +118,7 @@ class DataSync with ChangeNotifier {
|
|||||||
await client.remove(files.first.name!);
|
await client.remove(files.first.name!);
|
||||||
}
|
}
|
||||||
await client.write(filename, await data.readAsBytes());
|
await client.write(filename, await data.readAsBytes());
|
||||||
|
data.deleteIgnoreError();
|
||||||
Log.info("Upload Data", "Data uploaded successfully");
|
Log.info("Upload Data", "Data uploaded successfully");
|
||||||
return const Res(true);
|
return const Res(true);
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
|
Reference in New Issue
Block a user