@live-change/notification-service 0.3.21 → 0.3.23

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/package.json +3 -3
  2. package/settings.js +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/notification-service",
3
- "version": "0.3.21",
3
+ "version": "0.3.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "0.7.22"
24
+ "@live-change/framework": "0.7.24"
25
25
  },
26
- "gitHead": "70c50fb3eaafe7d1cf5c07b9916ab5a6bfcc8e34"
26
+ "gitHead": "7f083f1fa8746f0f2c9c6a40daa97d21aabda2f4"
27
27
  }
package/settings.js CHANGED
@@ -8,7 +8,6 @@ async function clientOwnsContact({ user }, { contactType, contact }) {
8
8
  console.log("ACC", user, contactType, contact)
9
9
  if(!user) return false
10
10
  const [service, model] = contactType.split('_')
11
- if(service[0].toUpperCase() + service.slice(1) != model) return false
12
11
  if(!config.contactTypes.includes(service)) return false
13
12
  const contactData = await app.dao.get(['database', 'tableObject', app.databaseName, contactType, contact ])
14
13
  return contactData.user == user
@@ -29,4 +28,4 @@ const NotificationSetting = definition.model({
29
28
  }
30
29
  })
31
30
 
32
- module.exports = { NotificationSetting }
31
+ module.exports = { NotificationSetting }