Skip to content

Commit 9df1e92

Browse files
committed
Don't pass unused priority to validate checkpoint impl
1 parent fe88057 commit 9df1e92

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/powersync_core/lib/src/bucket_storage.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,7 @@ class BucketStorage {
173173
{int? priority}) async {
174174
final rs =
175175
await select("SELECT powersync_validate_checkpoint(?) as result", [
176-
jsonEncode({
177-
...checkpoint.toJson(priority: priority),
178-
if (priority != null) 'priority': priority,
179-
})
176+
jsonEncode({...checkpoint.toJson(priority: priority)})
180177
]);
181178
final result =
182179
jsonDecode(rs[0]['result'] as String) as Map<String, dynamic>;

0 commit comments

Comments
 (0)