From 9df1e92415d5990e9e964f81879963150b5c44a2 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Tue, 18 Feb 2025 14:43:25 +0100 Subject: [PATCH] Don't pass unused priority to validate checkpoint impl --- packages/powersync_core/lib/src/bucket_storage.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/powersync_core/lib/src/bucket_storage.dart b/packages/powersync_core/lib/src/bucket_storage.dart index 08b8d925..344c92ee 100644 --- a/packages/powersync_core/lib/src/bucket_storage.dart +++ b/packages/powersync_core/lib/src/bucket_storage.dart @@ -173,10 +173,7 @@ class BucketStorage { {int? priority}) async { final rs = await select("SELECT powersync_validate_checkpoint(?) as result", [ - jsonEncode({ - ...checkpoint.toJson(priority: priority), - if (priority != null) 'priority': priority, - }) + jsonEncode({...checkpoint.toJson(priority: priority)}) ]); final result = jsonDecode(rs[0]['result'] as String) as Map;