diff --git a/cpp/DBHostObject.cpp b/cpp/DBHostObject.cpp index f42c578..d95f285 100644 --- a/cpp/DBHostObject.cpp +++ b/cpp/DBHostObject.cpp @@ -291,7 +291,7 @@ void DBHostObject::create_jsi_functions() { auto resolve = std::make_shared(rt, args[0]); auto reject = std::make_shared(rt, args[1]); - auto task = [this, &rt, query, params = std::move(params), resolve, + auto task = [this, &rt, query, params, resolve, reject]() { try { std::vector> results;