@live-change/user-service
Advanced tools
Comparing version 0.2.16 to 0.2.19
@@ -8,2 +8,4 @@ const app = require("@live-change/framework").app() | ||
require('./userItem.js') | ||
require('./sessionOrUserProperty.js') | ||
require('./sessionOrUserItem.js') | ||
@@ -10,0 +12,0 @@ const Session = definition.foreignModel('session', 'Session') |
{ | ||
"name": "@live-change/user-service", | ||
"version": "0.2.16", | ||
"version": "0.2.19", | ||
"description": "", | ||
@@ -24,6 +24,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@live-change/framework": "^0.5.7", | ||
"@live-change/framework": "^0.5.10", | ||
"@live-change/relations-plugin": "^0.1.10" | ||
}, | ||
"gitHead": "98a41ae61218a0ec58d4861b6409d8d9facde37f" | ||
"gitHead": "c2833a9660374ee17dd3def99fd1cdf47f6b1531" | ||
} |
@@ -75,3 +75,3 @@ const definition = require("./definition.js") | ||
}, | ||
//queuedBy: (command) => command.client.user, | ||
queuedBy: (command) => command.client.user, | ||
waitForEvents: true, | ||
@@ -78,0 +78,0 @@ async execute(properties, { client, service }, emit) { |
@@ -99,3 +99,3 @@ const definition = require("./definition.js") | ||
const eventName = 'userOwned' + modelName + 'Updated' | ||
const actionName = 'updateMyuser' + modelName | ||
const actionName = 'updateMyUser' + modelName | ||
service.actions[actionName] = new ActionDefinition({ | ||
@@ -136,3 +136,3 @@ name: actionName, | ||
const eventName = 'userOwned' + modelName + 'Reset' | ||
const actionName = 'resetMyuser' + modelName | ||
const actionName = 'resetMyUser' + modelName | ||
service.actions[actionName] = new ActionDefinition({ | ||
@@ -144,3 +144,3 @@ name: actionName, | ||
async execute(properties, {client, service}, emit) { | ||
const entity = await modelRuntime().indexObjectGet('byuser', client.user) | ||
const entity = await modelRuntime().indexObjectGet('byUser', client.user) | ||
if (!entity) throw 'not_found' | ||
@@ -147,0 +147,0 @@ emit({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35274
11
892