Migrated session-store to native class syntax

no issue

- part of the push to standardize on native es6 classes in place of EmberObject syntax
This commit is contained in:
Kevin Ansfield 2022-02-02 18:41:16 +00:00
parent f73837fba3
commit 83fb74613c

View File

@ -4,8 +4,8 @@ import {inject as service} from '@ember/service';
// Ghost already uses a cookie to store it's session so we don't need to keep
// track of any other peristent login state separately in Ember Simple Auth
export default EphemeralStore.extend({
session: service(),
export default class ApplicationStore extends EphemeralStore {
@service session;
// when loading the app we want ESA to try fetching the currently logged
// in user. This will succeed/fail depending on whether we have a valid
@ -22,4 +22,4 @@ export default EphemeralStore.extend({
return RSVP.reject();
});
}
});
}