Kaynağa Gözat

Fixed issue with stations not skipping.

KrisVos130 7 yıl önce
ebeveyn
işleme
00c03cd633
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 4 1
      .gitignore
  2. 1 0
      backend/logic/notifications.js

+ 4 - 1
.gitignore

@@ -8,6 +8,7 @@ startRedis.cmd
 startMongo.cmd
 .database
 dump.rdb
+npm-debug.log
 
 # Back End
 backend/node_modules/
@@ -16,4 +17,6 @@ backend/config/default.json
 # Front End
 frontend/node_modules/
 frontend/build/bundle.js
-frontend/build/config/default.json
+frontend/build/config/default.json
+
+npm

+ 1 - 0
backend/logic/notifications.js

@@ -43,6 +43,7 @@ const lib = {
 	 * @param {Function} cb - gets called when the notification has been scheduled
 	 */
 	schedule: (name, time, cb) => {
+		time = Math.round(time);
 		pub.set(crypto.createHash('md5').update(`_notification:${name}_`).digest('hex'), '', 'PX', time, 'NX', cb);
 	},