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:
parent
376e2f4cf3
commit
39b480682f
1 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue