зеркало из https://github.com/mozilla/galaxy-api.git
change company name to team name
This commit is contained in:
Родитель
a4da540c59
Коммит
b1b5883d3d
|
@ -24,8 +24,8 @@ function newUser(client, email) {
|
|||
},
|
||||
homepage: '',
|
||||
support: '',
|
||||
companySlug: '',
|
||||
companyName: '',
|
||||
teamSlug: '',
|
||||
teamName: '',
|
||||
dateLastLogin: utils.now(),
|
||||
id: uuid.v4()
|
||||
};
|
||||
|
|
|
@ -33,7 +33,7 @@ module.exports = function(server) {
|
|||
description: 'New username',
|
||||
isRequired: false
|
||||
},
|
||||
companyName: {
|
||||
teamName: {
|
||||
description: 'New team name',
|
||||
isRequired: false
|
||||
},
|
||||
|
@ -47,7 +47,7 @@ module.exports = function(server) {
|
|||
var dataToUpdate = {
|
||||
username: DATA.username,
|
||||
email: DATA.email,
|
||||
companyName: DATA.companyName,
|
||||
teamName: DATA.teamName,
|
||||
homepage: DATA.homepage
|
||||
};
|
||||
user.updateUser(client, id, dataToUpdate, function(err, newUserData) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче