diff --git a/packages/node/src/indexer/project.service.ts b/packages/node/src/indexer/project.service.ts index 68929c11a8..eba805934a 100644 --- a/packages/node/src/indexer/project.service.ts +++ b/packages/node/src/indexer/project.service.ts @@ -68,10 +68,10 @@ export class ProjectService { } async init(): Promise { + // Used to load assets into DS-processor, has to be done in any thread + await this.dsProcessorService.validateProjectCustomDatasources(); // Do extra work on main thread to setup stuff if (isMainThread) { - await this.dsProcessorService.validateProjectCustomDatasources(); - this._schema = await this.ensureProject(); await this.initDbSchema(); this.metadataRepo = await this.ensureMetadata();