remove mailboxdb.listGroups

This commit is contained in:
Girish Ramakrishnan
2016-09-27 12:05:18 -07:00
parent 519dd2b889
commit 0d3169c787

View File

@@ -6,7 +6,7 @@ exports = module.exports = {
listAliases: listAliases,
listMailboxes: listMailboxes,
listGroups: listGroups,
// listGroups: listGroups, // this is beyond my SQL skillz
getMailbox: getMailbox,
getGroup: getGroup,
@@ -115,18 +115,6 @@ function getGroup(name, callback) {
});
}
function listGroups(callback) {
assert.strictEqual(typeof callback, 'function');
// FIXME: fix the query to return members
database.query('SELECT ' + MAILBOX_FIELDS + ' FROM mailboxes WHERE ownerType = ?',
[ exports.TYPE_GROUP ], function (error, results) {
if (error) return callback(new DatabaseError(DatabaseError.INTERNAL_ERROR, error));
callback(null, results);
});
}
function getByOwnerId(ownerId, callback) {
assert.strictEqual(typeof ownerId, 'string');
assert.strictEqual(typeof callback, 'function');