waibu-db 1.0.13 → 1.0.15

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.
@@ -19,9 +19,9 @@ const handler = {
19
19
 
20
20
  async function allHandler ({ model, action, req, reply, template, params = {} }) {
21
21
  const { upperFirst, merge, keys } = this.app.bajo.lib._
22
- if (!keys(handler).includes(action)) throw this.error('notFound')
22
+ if (!keys(handler).includes(action)) throw this.error('_notFound')
23
23
  if (['delete', 'export'].includes(action)) {
24
- if (req.method === 'GET') throw this.error('notFound')
24
+ if (req.method === 'GET') throw this.error('_notFound')
25
25
  return await handler[action].call(this, { model, req, reply })
26
26
  }
27
27
  const allParams = merge(buildParams.call(this, { model, req, reply, action: upperFirst(action) }), params)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-db",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "DB Helper",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- <c:grid-row gutter="3" margin="top-2">
1
+ <c:grid-row gutter="3" margin="bottom-4">
2
2
  <c:grid-col col="6-lg">
3
3
  <c:wdb-recs-info pages recs-per-page recs-per-page-values="10 15 25 50" />
4
4
  </c:grid-col>