@live-change/notification-service 0.9.193 → 0.9.195

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.
Files changed (2) hide show
  1. package/notification.js +1 -1
  2. package/package.json +3 -3
package/notification.js CHANGED
@@ -238,7 +238,7 @@ definition.trigger({
238
238
  async function notificationAccess({ notification }, { client, visibilityTest }) {
239
239
  if(visibilityTest) return true
240
240
  const notificationRow = await Notification.get(notification)
241
- if(!notificationRow) throw 'notFound'
241
+ if(!notificationRow) throw app.logicError("notFound")
242
242
  return client.user
243
243
  ? notificationRow.sessionOrUserType === 'user_User' && notificationRow.sessionOrUser === client.user
244
244
  : notificationRow.sessionOrUserType === 'session_Session' && notificationRow.sessionOrUser === client.session
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/notification-service",
3
- "version": "0.9.193",
3
+ "version": "0.9.195",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,8 +21,8 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "^0.9.193"
24
+ "@live-change/framework": "^0.9.195"
25
25
  },
26
- "gitHead": "8a7627bed2cb66684e7169ddb3998191612e57a9",
26
+ "gitHead": "9f61eddae56ddd89aba20988b8e208d948728496",
27
27
  "type": "module"
28
28
  }