rename function
This commit is contained in:
@@ -17,7 +17,7 @@ exports = module.exports = {
|
||||
getByUsername: getByUsername,
|
||||
getAdmins: getAdmins,
|
||||
setPassword: setPassword,
|
||||
update: updateUser,
|
||||
update: update,
|
||||
createOwner: createOwner,
|
||||
getOwner: getOwner,
|
||||
createInvite: createInvite,
|
||||
@@ -408,7 +408,7 @@ function getByUsername(username, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
function updateUser(user, data, auditSource, callback) {
|
||||
function update(user, data, auditSource, callback) {
|
||||
assert.strictEqual(typeof user, 'object');
|
||||
assert.strictEqual(typeof data, 'object');
|
||||
assert(auditSource && typeof auditSource === 'object');
|
||||
|
||||
Reference in New Issue
Block a user