From 83fb74613cb8934e3d2d96f2ea0d44413972dcf5 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 2 Feb 2022 18:41:16 +0000 Subject: [PATCH] Migrated session-store to native class syntax no issue - part of the push to standardize on native es6 classes in place of EmberObject syntax --- ghost/admin/app/session-stores/application.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/session-stores/application.js b/ghost/admin/app/session-stores/application.js index b059fe76c3..d47001d604 100644 --- a/ghost/admin/app/session-stores/application.js +++ b/ghost/admin/app/session-stores/application.js @@ -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(); }); } -}); +}