0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed UrlService initialization

refs https://github.com/TryGhost/Toolbox/issues/125

- The await was missing from the "fetchResources" call which made the queue pick up less information than it should've
This commit is contained in:
Naz 2021-11-12 12:15:01 +04:00
parent 376e2f4cf3
commit 39b480682f

View file

@ -286,9 +286,11 @@ class UrlService {
* @TODO: Either remove this helper or rename to `_init`, because it's a little confusing,
* because this service get's initalised via events.
*/
init() {
this.resources.fetchResources();
async init() {
this.resources.initResourceConfig();
this.resources.initEvenListeners();
await this.resources.fetchResources();
// CASE: all resources are fetched, start the queue
this.queue.start({
event: 'init',