diff --git a/lib/core/utils/synchrodata.dart b/lib/core/utils/synchrodata.dart index 5cca0d2e1..a7fa19d1d 100644 --- a/lib/core/utils/synchrodata.dart +++ b/lib/core/utils/synchrodata.dart @@ -113,9 +113,10 @@ class Synchrodata { // 同步数据 static Future _synchrodata() async { - final db = await DatabaseHelper().database; var result = await Api.getOperationRecord(); - List records = result['records']; + List records = result['records'] ?? []; + if (records.isEmpty) return; + final db = await DatabaseHelper().database; await db.transaction((txn) async { for (var element in records) { final List existList = await txn.query( diff --git a/pubspec.yaml b/pubspec.yaml index 6fb187beb..6262a2de8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -23,6 +23,10 @@ dependencies: audio_session: ^0.1.18 flutter_markdown: ^0.7.7+1 markdown: ^7.1.1 + appflowy_editor: + git: + url: https://github.com/AppFlowy-IO/appflowy-editor.git + ref: main permission_handler: ^10.4.5 web_socket_channel: ^2.4.0 flutter_dotenv: ^5.1.0 @@ -47,7 +51,7 @@ dependencies: path: plugins/window_size ref: 6c66ad23ee79749f30a8eece542cf54eaf157ed8 flutter_local_notifications: ^18.0.1 - device_info_plus: ^10.1.2 + device_info_plus: ^11.5.0 uuid: ^4.3.3 record: ^5.2.1 share_plus: ^11.0.0