Skip to content

Commit 5ed38b1

Browse files
committed
Fix encoding parameters
1 parent 65d93d6 commit 5ed38b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/powersync_core/lib/src/sync/streaming_sync.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,8 @@ final class _ActiveRustStreamingIteration {
594594

595595
Future<void> syncIteration() async {
596596
try {
597-
await _control('start', convert.json.encode(sync.options.params));
597+
await _control(
598+
'start', convert.json.encode({'parameters': sync.options.params}));
598599
assert(_completedStream.isCompleted, 'Should have started streaming');
599600
await _completedStream.future;
600601
} finally {

0 commit comments

Comments
 (0)