sync method
Implementation
Future<void> sync() async {
final LibDatabase database = injector.get<LibDatabase>();
var notSyncedTable = database.select(database.reportCacheModel);
var notSyncedList = await notSyncedTable.get();
for (var element in notSyncedList) {
_telegramBotSender?.sendReport(
element.exception,
element.date,
onSuccessSync: () async {
await database.deleteReport(element.id);
},
);
}
}