@@ -3,6 +3,6 @@
|
||||
|
||||
abstract class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 1104;
|
||||
static const int script = 58;
|
||||
static const int build = 1110;
|
||||
static const int script = 59;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ abstract final class Stores {
|
||||
static final history = HistoryStore.instance;
|
||||
|
||||
/// All stores that need backup
|
||||
static final List<PersistentStore> _allBackup = [
|
||||
static final List<HiveStore> _allBackup = [
|
||||
SettingStore.instance,
|
||||
ServerStore.instance,
|
||||
ContainerStore.instance,
|
||||
@@ -30,11 +30,16 @@ abstract final class Stores {
|
||||
await NoBackupStore.instance.init();
|
||||
}
|
||||
|
||||
static int? get lastModTime {
|
||||
int? lastModTime = 0;
|
||||
static DateTime? get lastModTime {
|
||||
DateTime? lastModTime;
|
||||
for (final store in _allBackup) {
|
||||
final last = store.box.lastModified ?? 0;
|
||||
if (last > (lastModTime ?? 0)) {
|
||||
final last = store.lastUpdateTs;
|
||||
if (last == null) {
|
||||
continue;
|
||||
}
|
||||
if (lastModTime == null) {
|
||||
lastModTime = last;
|
||||
} else if (last.isAfter(lastModTime)) {
|
||||
lastModTime = last;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user