waibu-db 1.1.20 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/prep-crud.js
CHANGED
|
@@ -27,6 +27,8 @@ function prepCrud ({ model, body, id, req, reply, options = {}, args }) {
|
|
|
27
27
|
if (options.query) filter.query = cloneDeep(options.query)
|
|
28
28
|
if (options.limit) filter.limit = options.limit
|
|
29
29
|
if (options.sort) filter.sort = options.sort
|
|
30
|
+
if (options.page) filter.page = options.page
|
|
31
|
+
if (model === 'SeatrackComponent') console.log('===', options, filter)
|
|
30
32
|
return { name, recId, input, opts, filter, attachment, stats, mimeType }
|
|
31
33
|
}
|
|
32
34
|
|
package/package.json
CHANGED
|
@@ -159,7 +159,7 @@ const handler = {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
async function getSchemaExt (model, view, opts) {
|
|
162
|
+
async function getSchemaExt (model, view, opts = {}) {
|
|
163
163
|
const { readConfig, defaultsDeep } = this.app.bajo
|
|
164
164
|
const { getSchema } = this.app.dobo
|
|
165
165
|
const { pick } = this.lib._
|