flamerest 1.0.30 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/REST.js +1 -1
  2. package/package.json +1 -1
package/REST.js CHANGED
@@ -370,7 +370,7 @@ class FLAMEREST {
370
370
 
371
371
  let resp = await this.get(table, where , null, fields, null, 1, 1);
372
372
  if(resp.errors) return resp;
373
- if(resp.data.length === 0) return resp;
373
+ if(resp.data.length === 0) return null;
374
374
 
375
375
  return resp.data[0];
376
376
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flamerest",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "",
5
5
  "main": "REST.js",
6
6
  "typings": "./REST.d.ts",