Merge pull request #417 from fridays/patch-1

Update README.md
master
Evgeny Poberezkin 2017-02-16 22:40:22 +00:00 committed by GitHub
commit e17b55b96d
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ function checkIdExists(schema, data) {
.select('id')
.where('id', data)
.then(function (rows) {
return !!rows/length; // true if record is found
return !!rows.length; // true if record is found
});
}