Skip to content

Commit 5622a73

Browse files
authored
fix(server-core): Fix getCompilersInstances to not return compiler promise (#9814)
1 parent 4c0fef7 commit 5622a73

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/cubejs-server-core/src/core/CompilerApi.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,10 @@ export class CompilerApi {
9696
}
9797

9898
/**
99-
* Returns the compilers instances without model compilation,
99+
* Creates the compilers instances without model compilation,
100100
* because it could fail and no compilers will be returned.
101101
*/
102-
getCompilersInstances() {
103-
if (this.compilers) {
104-
return this.compilers;
105-
}
106-
102+
createCompilerInstances() {
107103
return prepareCompiler(this.repository, {
108104
allowNodeRequire: this.allowNodeRequire,
109105
compileContext: this.compileContext,

0 commit comments

Comments
 (0)