Skip to content

Commit 46b18f4

Browse files
louwersaddaleax
andauthored
Update src/node_sqlite.cc
Co-authored-by: Anna Henningsen <[email protected]>
1 parent d19c293 commit 46b18f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_sqlite.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ void DatabaseSync::ApplyChangeset(const FunctionCallbackInfo<Value>& args) {
17421742

17431743
Local<Function> filterFunc = filterValue.As<Function>();
17441744

1745-
context.filterCallback = [env, filterFunc](std::string item) -> bool {
1745+
context.filterCallback = [env, filterFunc](std::string_view item) -> bool {
17461746
// TODO(@jasnell): The use of ToLocalChecked here means that if
17471747
// the filter function throws an error the process will crash.
17481748
// The filterCallback should be updated to avoid the check and

0 commit comments

Comments
 (0)