| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2157,7 +2157,8 @@ void DatabaseSync::ApplyChangeset(const FunctionCallbackInfo<Value>& args) { | |||
| 2157 | 2157 | ||
| 2158 | 2158 | Local<Function> filterFunc = filterValue.As<Function>(); | |
| 2159 | 2159 | ||
| 2160 | - context.filterCallback = [&](std::string_view item) -> bool { | ||
| 2160 | + context.filterCallback = | ||
| 2161 | + [env, db, filterFunc](std::string_view item) -> bool { | ||
| 2161 | 2162 | // If there was an error in the previous call to the filter's | |
| 2162 | 2163 | // callback, we skip calling it again. | |
| 2163 | 2164 | if (db->ignore_next_sqlite_error_) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments