More database refactoring
This commit is contained in:
parent
fe00fb8c83
commit
47af1d4892
3 changed files with 173 additions and 288 deletions
|
|
@ -494,4 +494,15 @@ module.exports = {
|
|||
|
||||
callback(new Error("recoverPassword is not implemented"), null);
|
||||
},
|
||||
|
||||
/**
|
||||
* Retrieve a list of channels owned by a user
|
||||
*/
|
||||
getChannels: function (name, callback) {
|
||||
if (typeof callback !== "function") {
|
||||
return;
|
||||
}
|
||||
|
||||
db.query("SELECT * FROM `channels` WHERE owner=?", [name], callback);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue