fix: backup merge

This commit is contained in:
lollipopkit
2024-01-27 21:11:40 +08:00
parent dacf8f0864
commit b08265221f
13 changed files with 115 additions and 130 deletions

View File

@@ -6,6 +6,7 @@ class ServerStore extends PersistentStore {
void put(ServerPrivateInfo info) {
box.put(info.id, info);
box.updateLastModified();
}
List<ServerPrivateInfo> fetch() {
@@ -22,10 +23,12 @@ class ServerStore extends PersistentStore {
void delete(String id) {
box.delete(id);
box.updateLastModified();
}
void deleteAll() {
box.clear();
box.updateLastModified();
}
void update(ServerPrivateInfo old, ServerPrivateInfo newInfo) {