dobo 2.36.0 → 2.36.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/lib/factory/model/exists.js +2 -2
- package/package.json +1 -1
- package/wiki/CHANGES.md +1 -0
|
@@ -11,7 +11,7 @@ const action = 'modelExists'
|
|
|
11
11
|
* @see {@link module:Hook.beforeModelExists}
|
|
12
12
|
* @see {@link module:Hook.afterModelExists}
|
|
13
13
|
*/
|
|
14
|
-
async function
|
|
14
|
+
async function exists (opts = {}) {
|
|
15
15
|
opts.dataOnly = opts.dataOnly ?? true
|
|
16
16
|
const { dataOnly } = opts
|
|
17
17
|
const { options } = await getFilterAndOptions.call(this, null, opts, action)
|
|
@@ -23,4 +23,4 @@ async function isExists (opts = {}) {
|
|
|
23
23
|
return dataOnly ? result.data : result
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export default
|
|
26
|
+
export default exists
|
package/package.json
CHANGED