Skip to content

Commit 60d6e50

Browse files
committed
Fix typo in JS key encoding fix function
1 parent 087b0cb commit 60d6e50

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/core/src/fix_data.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,18 @@ fn powersync_remove_duplicate_key_encoding_impl(
130130
}
131131

132132
create_sqlite_optional_text_fn!(
133-
powersync_remote_duplicate_key_encoding,
133+
powersync_remove_duplicate_key_encoding,
134134
powersync_remove_duplicate_key_encoding_impl,
135-
"powersync_remote_duplicate_key_encoding"
135+
"powersync_remove_duplicate_key_encoding"
136136
);
137137

138138
pub fn register(db: *mut sqlite::sqlite3) -> Result<(), ResultCode> {
139139
db.create_function_v2(
140-
"powersync_remote_duplicate_key_encoding",
140+
"powersync_remove_duplicate_key_encoding",
141141
1,
142142
sqlite::UTF8 | sqlite::DETERMINISTIC,
143143
None,
144-
Some(powersync_remote_duplicate_key_encoding),
144+
Some(powersync_remove_duplicate_key_encoding),
145145
None,
146146
None,
147147
None,

dart/test/js_key_encoding_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void main() {
5858

5959
// Apply migration
6060
db.execute(
61-
'UPDATE ps_oplog SET key = powersync_remote_duplicate_key_encoding(key);');
61+
'UPDATE ps_oplog SET key = powersync_remove_duplicate_key_encoding(key);');
6262

6363
[row] = db.select('select * from ps_oplog');
6464
expect(row['key'], 'items/1/subkey');

0 commit comments

Comments
 (0)