@live-change/access-control-service 0.2.34 → 0.2.38
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/invite.js +10 -2
- package/package.json +2 -2
package/invite.js
CHANGED
|
@@ -69,7 +69,7 @@ definition.event({
|
|
|
69
69
|
})
|
|
70
70
|
|
|
71
71
|
definition.trigger({
|
|
72
|
-
name: '
|
|
72
|
+
name: 'contactOrUserOwnedAccessInvitationMoved',
|
|
73
73
|
properties: {
|
|
74
74
|
...contactProperties,
|
|
75
75
|
from: {
|
|
@@ -98,6 +98,14 @@ definition.trigger({
|
|
|
98
98
|
async execute({ from, to, objectType, object }, { service }, emit) {
|
|
99
99
|
const invitation = App.encodeIdentifier([from.contactOrUserType, from.contactOrUser, objectType, object])
|
|
100
100
|
const invitationData = await AccessInvitation.get(invitation)
|
|
101
|
+
console.error("MOVED!!!", {
|
|
102
|
+
...invitationData,
|
|
103
|
+
type: 'notify',
|
|
104
|
+
sessionOrUserType: 'user_User',
|
|
105
|
+
sessionOrUser: to.contactOrUser,
|
|
106
|
+
notificationType: 'accessControl_Invitation',
|
|
107
|
+
id: undefined
|
|
108
|
+
})
|
|
101
109
|
if(to.contactOrUserType == 'user_User') {
|
|
102
110
|
await service.trigger({
|
|
103
111
|
...invitationData,
|
|
@@ -266,4 +274,4 @@ for(const contactType of config.contactTypes) {
|
|
|
266
274
|
}
|
|
267
275
|
})
|
|
268
276
|
|
|
269
|
-
}
|
|
277
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-service",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.38",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@live-change/framework": "0.6.5"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "d30c93533192fb0d3b620929c61c5d04568beae0"
|
|
27
27
|
}
|