Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
5f63cfac78
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/cache.js

+ 1 - 1
modules/cache.js

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