mirror of
https://github.com/documize/community.git
synced 2025-08-03 20:45:26 +02:00
correct casing of Email field
This commit is contained in:
parent
170c20c8bc
commit
4326831704
1 changed files with 93 additions and 93 deletions
|
@ -23,7 +23,7 @@ export default Ember.Service.extend({
|
|||
type: 'POST',
|
||||
data: JSON.stringify(user),
|
||||
contentType: 'json'
|
||||
}).then(function(response){
|
||||
}).then(function (response) {
|
||||
return models.UserModel.create(response);
|
||||
});
|
||||
},
|
||||
|
@ -42,7 +42,7 @@ export default Ember.Service.extend({
|
|||
// Returns all users for organization.
|
||||
getAll() {
|
||||
return this.get('ajax').request(`users`).then((response) => {
|
||||
return response.map(function(obj){
|
||||
return response.map(function (obj) {
|
||||
return models.UserModel.create(obj);
|
||||
});
|
||||
});
|
||||
|
@ -54,9 +54,9 @@ export default Ember.Service.extend({
|
|||
|
||||
return this.get('ajax').request(url, {
|
||||
method: "GET"
|
||||
}).then((response)=>{
|
||||
}).then((response) => {
|
||||
let data = [];
|
||||
_.each(response, function(obj) {
|
||||
_.each(response, function (obj) {
|
||||
data.pushObject(models.UserModel.create(obj));
|
||||
});
|
||||
|
||||
|
@ -103,7 +103,7 @@ export default Ember.Service.extend({
|
|||
}
|
||||
|
||||
let data = JSON.stringify({
|
||||
Email: email
|
||||
email: email
|
||||
});
|
||||
|
||||
return this.get('ajax').request(url, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue