FIX: correct route for updating user title

This commit is contained in:
Arpit Jalan 2016-12-29 23:07:57 +05:30
parent 1debf98d61
commit a1f0375f1c
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
saveTitle() {
const self = this;
return ajax("/users/" + this.get('model.username').toLowerCase(), {
return ajax(`/users/${this.get('model.username').toLowerCase()}.json`, {
data: {title: this.get('userTitleValue')},
type: 'PUT'
}).catch(function(e) {