syncano-server
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -186,3 +186,3 @@ 'use strict'; | ||
_this4.find(ids).then(function (response) { | ||
var shouldThrow = Array.isArray(ids) ? response.length !== ids.length : response !== null; | ||
var shouldThrow = Array.isArray(ids) ? response.length !== ids.length : response === null; | ||
@@ -189,0 +189,0 @@ return shouldThrow ? reject(new _errors.NotFoundError()) : resolve(response); |
{ | ||
"name": "syncano-server", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "A library to intereact with the Syncano API on a server side", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -130,3 +130,3 @@ import querystring from 'querystring' | ||
.then(response => { | ||
const shouldThrow = Array.isArray(ids) ? response.length !== ids.length : response !== null | ||
const shouldThrow = Array.isArray(ids) ? response.length !== ids.length : response === null | ||
@@ -133,0 +133,0 @@ return shouldThrow ? reject(new NotFoundError()) : resolve(response) |