waibu-db 2.26.1 → 2.26.3

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.
@@ -18,6 +18,7 @@ async function addHandler ({ req, reply, model, params = {}, template, addOnsHan
18
18
  if (req.query.mode === 'clone' && req.query.id) {
19
19
  const resp = await getRecord({ model, req, id: req.query.id, options: { fields: map(schema.properties, 'name'), ...opts } })
20
20
  def = omit(resp.data, omitted)
21
+ if (def._fmt) def._fmt = omit(def._fmt, omitted)
21
22
  } else {
22
23
  const picked = map(schema.properties, 'name')
23
24
  def = omit(pick(req.query, picked), omitted)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-db",
3
- "version": "2.26.1",
3
+ "version": "2.26.3",
4
4
  "description": "DB Helper",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-06-19
4
+
5
+ - [2.26.2] Bug fix in ```add-handler.js```
6
+
3
7
  ## 2026-06-18
4
8
 
5
9
  - [2.26.1] Bug fix in ```get-schema-ext.js```