Fix channel registration rank from /account/channels

This commit is contained in:
calzoneman 2013-12-26 23:53:43 -05:00
parent ead38a9d35
commit e27667b6d2

View file

@ -47,7 +47,12 @@ function initTables(name, owner, callback) {
return; return;
} }
// TODO add owner to ranks table module.exports.setRank(name, owner, 4, function (err) {
if (err) {
dropTable("chan_" + name + "_ranks");
callback(err, null);
return;
}
createLibraryTable(name, function (err) { createLibraryTable(name, function (err) {
if (err) { if (err) {
@ -68,6 +73,7 @@ function initTables(name, owner, callback) {
}); });
}); });
}); });
});
} }
module.exports = { module.exports = {