@live-change/timer-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.
- package/index.js +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.
|
|
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.
|
|
24
|
+
"@live-change/framework": "0.7.24"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "7f083f1fa8746f0f2c9c6a40daa97d21aabda2f4"
|
|
27
27
|
}
|