Explorar o código

redis_get print

DevYK %!s(int64=3) %!d(string=hai) anos
pai
achega
3c2280abab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      model/redis_db.js

+ 1 - 1
model/redis_db.js

@@ -66,7 +66,7 @@ async function redis_get(key) {
 function readRedis(key) {
   return new Promise((resolve) => {
       redis_get(key).then(result => {
-          // console.log("redis_get=", JSON.parse(result)); // Prints "value"
+          console.log("redis_get=", result); // Prints "value"
           resolve(result);
       });
   })