I'm trying to execute an hdel command in node.js inside a hget block. Here's the code:
client.hget(requests[i], "client", function(err, client){
if(isUser == true){
    client.hdel(requests[i], function(err){
          if(err){
                 console.log("cannot process request");
              }
     });
    }
});
It's not working and I can't understand why! Any help would be greatly appreciated.
 
     
    