diff --git a/cpp/utils.cpp b/cpp/utils.cpp index a2ba13e..76c7550 100644 --- a/cpp/utils.cpp +++ b/cpp/utils.cpp @@ -235,12 +235,12 @@ void to_batch_arguments(jsi::Runtime &rt, jsi::Array const &batchParams, const jsi::Value &p = batchUpdateParams.getValueAtIndex(rt, x); auto params = std::make_shared>(to_variant_vec(rt, p)); - commands->emplace_back(query, params); + commands->push_back({query, params}); } } else { auto params = std::make_shared>( to_variant_vec(rt, commandParams)); - commands->emplace_back(query, params); + commands->push_back({query, params}); } } }