rename function

This commit is contained in:
Girish Ramakrishnan
2020-07-09 15:41:02 -07:00
parent 0c5113ed5b
commit d512a9c30d

View File

@@ -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');