commit
e17b55b96d
|
@ -462,7 +462,7 @@ function checkIdExists(schema, data) {
|
||||||
.select('id')
|
.select('id')
|
||||||
.where('id', data)
|
.where('id', data)
|
||||||
.then(function (rows) {
|
.then(function (rows) {
|
||||||
return !!rows/length; // true if record is found
|
return !!rows.length; // true if record is found
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue