dobo 2.26.0 → 2.26.1
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/extend/dobo/driver/memory.js +6 -0
- package/package.json +1 -1
- package/wiki/CHANGES.md +1 -0
|
@@ -129,6 +129,12 @@ async function memoryDriverFactory () {
|
|
|
129
129
|
return result
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
async findOneRecord (model, filter = {}, options = {}) {
|
|
133
|
+
filter.limit = 1
|
|
134
|
+
const result = await this.findRecord(model, filter, options)
|
|
135
|
+
return { data: result.data[0] }
|
|
136
|
+
}
|
|
137
|
+
|
|
132
138
|
async findAllRecord (model, filter = {}, options = {}) {
|
|
133
139
|
const { sort } = filter
|
|
134
140
|
const { data: count = 0 } = await this.countRecord(model, filter, options)
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- [2.26.0] Add loading multiple model schema as in one ```model.js``` file
|
|
6
6
|
- [2.26.0] Remove caching feature of model schema
|
|
7
7
|
- [2.26.0] Change driver hook name with this syntax: ```dobo.driver:<action>```
|
|
8
|
+
- [2.26.1] Bug fix in ```memory.js```
|
|
8
9
|
|
|
9
10
|
## 2026-05-22
|
|
10
11
|
|