Преглед изворни кода

fix stupid bug that would result in never updating images
redis gives us a string. Thus, <time> + <number> resulted in '<time><number>' which was quite a big number and wouldn't ever be bigger than a valid Date

jomo пре 10 година
родитељ
комит
5f63cfac78
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      modules/cache.js

+ 1 - 1
modules/cache.js

@@ -73,7 +73,7 @@ exp.get_details = function(uuid, callback) {
     if (data) {
     if (data) {
       details = {
       details = {
         hash: (data.h == "null" ? null : data.h),
         hash: (data.h == "null" ? null : data.h),
-        time: data.t
+        time: Number(data.t)
       };
       };
     }
     }
     callback(err, details);
     callback(err, details);