Hi community, I am writing a plugin that I want to keep track of a list of users who have replied to a certain topic.
I wanted to create a list of uids that replied (or object with uid as key and post count inside the topic as value) in the topic data object.
However when I tried to do it like this
plugin.createReplyList = function(topicData) {
var replyList = [1,2,3]
db.setObjectField('topic:' + topicData.tid, "replyList", replyList);
};
I got the below error
node_redis: Deprecated: The HSET command contains a argument of type Array.
This is converted to "1,2,3" by using .toString() now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
Wonder what would be the correct way to achieve this? Thanks in advance.