datai-sdk 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "datai-sdk",
3
3
  "main": "index.ts",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "description": "Datai SDK which has useful libraries to help building projections",
6
6
  "scripts": {
7
7
  "postinstall": "node postinstall-script.js"
@@ -13,12 +13,14 @@ export function registerUser(userId: string): void {
13
13
 
14
14
  export function ensureUpdateTrigger(
15
15
  userPositionId: string,
16
+ user: string,
16
17
  updateTriggerId: string = watcher.SCHEDULE_DEFAULT
17
18
  ): bool {
18
19
  const updateTrigger = store.get('PositionUpdateTrigger', userPositionId)
19
20
  if (updateTrigger == null) {
20
21
  const updateTrigger = new Entity()
21
22
  updateTrigger.setString('id', userPositionId)
23
+ updateTrigger.setString('user', user)
22
24
  updateTrigger.setString('updateTrigger', updateTriggerId)
23
25
  store.set('PositionUpdateTrigger', userPositionId, updateTrigger)
24
26
  return false