diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 1589e8c5c..4670696a3 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -552,7 +552,7 @@ Pad.prototype.copy = function copy(destinationID, force, callback) { }, function(callback) { // Group pad? Add it to the group's list - if(destGroupID) db.setSub("group:" + destGroupID, ["pads", padID], 1); + if(destGroupID) db.setSub("group:" + destGroupID, ["pads", destinationID], 1); // Initialize the new pad (will update the listAllPads cache) padManager.getPad(destinationID, null, callback)