Skip to content

Commit

Permalink
Don't pass unused priority to validate checkpoint impl
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Feb 18, 2025
1 parent fe88057 commit 9df1e92
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/powersync_core/lib/src/bucket_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, dynamic>;
Expand Down

0 comments on commit 9df1e92

Please sign in to comment.