diff --git a/libs/database/searcher.js b/libs/database/searcher.js index bb05f62..7c6d5d6 100644 --- a/libs/database/searcher.js +++ b/libs/database/searcher.js @@ -26,7 +26,7 @@ export default function searcher(table, matchField=undefined, matchQuery=undefin (resolve, reject) => { const pageCount = method === "get" ? 0 : - parseInt(sqlite + sqlite .prepare(` SELECT count(*) FROM ${simpleSanitize(table)} ${matchField ? `WHERE ${simpleSanitize(matchField)} = $matchQuery` : ""} @@ -34,7 +34,6 @@ export default function searcher(table, matchField=undefined, matchQuery=undefin .get({ matchQuery }) - ) if (method === "all" && page > pageCount) reject(`Page number too high! Page count: ${pageCount}`)