@live-change/timer-service 0.3.21 → 0.3.22

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/index.js +2 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -287,7 +287,7 @@ definition.trigger({
287
287
  async execute({ timer }, { client, service }, emit) {
288
288
  console.log("CREATE TIMER", timer)
289
289
  if(!timer) throw new Error("timer is required")
290
- let timestamp = timer.timestamp
290
+ let timestamp = new Date(timer.timestamp).getTime()
291
291
  let loops = timer.loops || 0
292
292
  let timerId = timer.id || app.generateUid()
293
293
  let maxRetries = timer.maxRetries || 0
@@ -471,4 +471,4 @@ definition.beforeStart(async () => {
471
471
  await startTimers()
472
472
  })
473
473
 
474
- module.exports = definition
474
+ module.exports = definition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/timer-service",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
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.23"
25
25
  },
26
- "gitHead": "70c50fb3eaafe7d1cf5c07b9916ab5a6bfcc8e34"
26
+ "gitHead": "d7ffc43e2e2eeff25e708546204eea727d17ba2a"
27
27
  }