allow only for pads less than 10 to be overwritten

This commit is contained in:
John McLear 2014-12-29 22:02:24 +01:00
parent ab5e7381a2
commit a6400b3f61
2 changed files with 18 additions and 7 deletions

View file

@ -23,7 +23,6 @@ exports.setPadRaw = function(padId, records, callback){
async.eachSeries(Object.keys(records), function(key, cb){
var value = records[key]
// rewrite padId
var oldPadId = key.split(":");
oldPadId[1] = padId;