We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27501b4 commit 40c625bCopy full SHA for 40c625b
src/node_sqlite.cc
@@ -2157,7 +2157,8 @@ void DatabaseSync::ApplyChangeset(const FunctionCallbackInfo<Value>& args) {
2157
2158
Local<Function> filterFunc = filterValue.As<Function>();
2159
2160
- context.filterCallback = [&](std::string_view item) -> bool {
+ context.filterCallback =
2161
+ [env, db, filterFunc](std::string_view item) -> bool {
2162
// If there was an error in the previous call to the filter's
2163
// callback, we skip calling it again.
2164
if (db->ignore_next_sqlite_error_) {
0 commit comments