diff --git a/README.md b/README.md index f760d4b..7539f51 100644 --- a/README.md +++ b/README.md @@ -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 }); }