fix: allows for limit bypass on version find operations
This commit is contained in:
@@ -100,7 +100,7 @@ async function findVersions<T extends TypeWithVersion<T> = any>(args: Arguments)
|
||||
|
||||
const paginatedDocs = await VersionsModel.paginate(query, {
|
||||
page: page || 1,
|
||||
limit: limit || 10,
|
||||
limit: limit ?? 10,
|
||||
sort: {
|
||||
[sortProperty]: sortOrder,
|
||||
},
|
||||
|
||||
@@ -98,7 +98,7 @@ async function findVersions<T extends TypeWithVersion<T> = any>(args: Arguments)
|
||||
|
||||
const paginatedDocs = await VersionsModel.paginate(query, {
|
||||
page: page || 1,
|
||||
limit: limit || 10,
|
||||
limit: limit ?? 10,
|
||||
sort: {
|
||||
[sortProperty]: sortOrder,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user