dobo 2.2.3 → 2.2.4

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.
@@ -6,7 +6,7 @@ async function attachment (req, reply) {
6
6
  const { routePath } = this.app.waibu
7
7
  const { fs } = this.app.lib
8
8
  const mdl = this.app.dobo.getModel(req.params.model)
9
- const items = await mdl.listAttachments(req.params.id, req.params.field, '*')
9
+ const items = await mdl.listAttachments({ id: req.params.id, fieldName: req.params.field, file: '*' })
10
10
  let item = req.params.file === '_first' ? items[0] : undefined
11
11
  if (!item) {
12
12
  item = find(items, i => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "DBMS for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-01-19
4
+
5
+ - [2.2.4] Bug fix on route ```dobo:/attachment/...```
6
+
3
7
  ## 2026-01-18
4
8
 
5
9
  - [2.2.2] Revert back to ```mingo@6.5.1``` because of bugs in ```skip``` operation