dobo 2.2.3 → 2.2.5

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 => {
@@ -48,6 +48,7 @@ async function driverFactory () {
48
48
  * @param {Object} conn - Connection object
49
49
  */
50
50
  async sanitizeConnection (conn) {
51
+ conn.proto = conn.proto ?? 'http' // used by driver that use url based connection
51
52
  conn.memory = false
52
53
  }
53
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "DBMS for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-01-21
4
+
5
+ - [2.2.5] Add ```proto``` to ```connection.options```
6
+
7
+ ## 2026-01-19
8
+
9
+ - [2.2.4] Bug fix on route ```dobo:/attachment/...```
10
+
3
11
  ## 2026-01-18
4
12
 
5
13
  - [2.2.2] Revert back to ```mingo@6.5.1``` because of bugs in ```skip``` operation