@live-change/relations-plugin 0.8.7 → 0.8.8
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/entity.js +2 -2
- package/package.json +3 -3
package/entity.js
CHANGED
|
@@ -32,7 +32,7 @@ function defineView(config, context) {
|
|
|
32
32
|
returns: {
|
|
33
33
|
type: model,
|
|
34
34
|
},
|
|
35
|
-
access: config.
|
|
35
|
+
access: config.readAccess,
|
|
36
36
|
accessControl: entityAccessControl(context, config.readAccessControl || config.writeAccessControl),
|
|
37
37
|
daoPath(properties, { client, context }) {
|
|
38
38
|
const id = properties[modelPropertyName]
|
|
@@ -170,7 +170,7 @@ function defineUpdateAction(config, context) {
|
|
|
170
170
|
const entity = await modelRuntime().get(id)
|
|
171
171
|
if(!entity) throw 'not_found'
|
|
172
172
|
const data = extractObjectData(writeableProperties, properties, entity)
|
|
173
|
-
await App.validation.validate({ ...
|
|
173
|
+
await App.validation.validate({ ...data }, validators,
|
|
174
174
|
{ source: action, action, service, app, client })
|
|
175
175
|
await fireChangeTriggers(context, null, id,
|
|
176
176
|
entity ? extractObjectData(writeableProperties, entity, {}) : null, data)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/relations-plugin",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.8.
|
|
25
|
+
"@live-change/framework": "^0.8.8",
|
|
26
26
|
"pluralize": "^8.0.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "77eafa414e091c8d34ae63ee8927d53f3bde893d"
|
|
29
29
|
}
|