File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ Napi::Value Container::query(const Napi::CallbackInfo &info) {
194
194
return env.Null ();
195
195
}
196
196
197
- // Create new Store object
197
+ // Create new objects
198
198
Napi::EscapableHandleScope scope (env);
199
199
auto queryPtr = Napi::External<GSQuery>::New (env, pQuery);
200
200
auto containerInfoPtr = Napi::External<GSContainerInfo>::New (env,
@@ -304,6 +304,7 @@ Napi::Value Container::queryByTimeSeriesRange(const Napi::CallbackInfo &info) {
304
304
if (info.Length () != 2 ) {
305
305
// Throw error
306
306
THROW_EXCEPTION_WITH_STR (env, " Wrong arguments" , mContainer )
307
+ return env.Null ();
307
308
}
308
309
Field field;
309
310
Napi::Value startValue = info[0 ].As <Napi::Value>();
@@ -318,9 +319,10 @@ Napi::Value Container::queryByTimeSeriesRange(const Napi::CallbackInfo &info) {
318
319
endTimestampValue, &pQuery);
319
320
if (!GS_SUCCEEDED (ret)) {
320
321
THROW_EXCEPTION_WITH_CODE (env, ret, mContainer )
322
+ return env.Null ();
321
323
}
322
324
323
- // Create new Store object
325
+ // Create new objects
324
326
Napi::EscapableHandleScope scope (env);
325
327
auto queryPtr = Napi::External<GSQuery>::New (env, pQuery);
326
328
auto containerInfoPtr = Napi::External<GSContainerInfo>::New (env,
You can’t perform that action at this time.
0 commit comments