Skip to content

Redis methods callback not working. #2034

Open
@gkorland

Description

@gkorland

Moved from: RediSearch/RediSearch#2652
@Tarun-sngh

It seems like my callback is not hitting, am not getting any output on my console.
can you please look into it and let me know if there is any issue in my code or what .

Node version am using : 4.0.4
My code:

function getUserProfile(userId, cb) {
    let redis = redisConnect();
    redis.hGetAll( userId, cb);
}

getUserProfile("teams:91, (err, results) => {
    if(err){
        console.log(err);
    }
    console.log(results);
})

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions