Pagination Bugfix.
This commit is contained in:
Vendored
+1
-1
@@ -384,7 +384,7 @@ export default function sqlGenerator({ tableName, genObject, dbFullName, count }
|
||||
if (genObject?.limit && !count)
|
||||
queryString += ` LIMIT ${genObject.limit}`;
|
||||
if ((genObject?.offset || genObject?.page) && !count)
|
||||
queryString += ` OFFSET ${genObject.offset}`;
|
||||
queryString += ` OFFSET ${genObject.offset || genObject?.page}`;
|
||||
return {
|
||||
string: queryString,
|
||||
values: sqlSearhValues,
|
||||
|
||||
Reference in New Issue
Block a user