Skip to content

Commit acc07ef

Browse files
committed
get rid of ramda
1 parent 7d070e0 commit acc07ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import crypto from 'crypto';
2-
import R from 'ramda';
32
import { v4 as uuidv4, parse as uuidParse } from 'uuid';
43
import { createQuery, compile, queryClass, PreAggregations, QueryFactory } from '@cubejs-backend/schema-compiler';
54
import { NativeInstance } from '@cubejs-backend/native';
@@ -109,9 +108,9 @@ export class CompilerApi {
109108
async createQueryFactory(compilers) {
110109
const { cubeEvaluator } = compilers;
111110

112-
const cubeToQueryClass = R.fromPairs(
111+
const cubeToQueryClass = Object.fromEntries(
113112
await Promise.all(
114-
cubeEvaluator.cubeNames().map(async cube => {
113+
cubeEvaluator.cubeNames().map(async (cube) => {
115114
const dataSource = cubeEvaluator.cubeFromPath(cube).dataSource ?? 'default';
116115
const dbType = await this.getDbType(dataSource);
117116
const dialectClass = this.getDialectClass(dataSource, dbType);

0 commit comments

Comments
 (0)