fix export of bad pads and also limit import to files

This commit is contained in:
John McLear 2015-02-21 12:33:30 +00:00
parent abb9b6d833
commit d5bec1701e
2 changed files with 17 additions and 2 deletions

View file

@ -48,7 +48,7 @@ exports.getPadRaw = function(padId, callback){
// Get the author info
db.get("globalAuthor:"+authorId, function(e, authorEntry){
authorEntry.padIDs = padId;
if(authorEntry && authorEntry.padIDs) authorEntry.padIDs = padId;
if(!e) data["globalAuthor:"+authorId] = authorEntry;
});