refactor repositories

This commit is contained in:
shenlong-tanwen
2024-09-21 20:04:05 +05:30
parent d6495f014d
commit e810512285
23 changed files with 142 additions and 127 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ class LogManager {
_timer = null;
final buffer = _msgBuffer;
_msgBuffer = [];
di<ILogRepository>().addAll(buffer);
di<ILogRepository>().createAll(buffer);
}
void init() {
@@ -78,7 +78,7 @@ class LogManager {
_timer?.cancel();
_timer = null;
_msgBuffer.clear();
di<ILogRepository>().clear();
di<ILogRepository>().deleteAll();
}
static void setGlobalErrorCallbacks() {