mirror of
https://gitlab.silvrtree.co.uk/martind2000/censis-archive.git
synced 2025-01-25 23:06:18 +00:00
19 lines
418 B
JavaScript
19 lines
418 B
JavaScript
import Ember from 'ember';
|
|
|
|
const { inject: { service }, RSVP } = Ember;
|
|
|
|
export default Ember.Route.extend({
|
|
|
|
sessionAccount: service('session-account'),
|
|
model: function() {
|
|
'use strict';
|
|
const accountId = this.get('sessionAccount.account.id');
|
|
|
|
return new RSVP.Promise((resolve,reject) => {
|
|
return this.get('store').find('profile',accountId)
|
|
.then(resolve,reject);
|
|
});
|
|
|
|
}
|
|
});
|