Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/cubejs-server-core/src/core/DevServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class DevServer {
requestId: getRequestIdFromRequest(req),
});

const tablesSchema = await driver.tablesSchema();
const tablesSchema = await driver.tablesSchemaV2();

this.cubejsServer.event('Dev Server DB Schema Load Success');
if (Object.keys(tablesSchema || {}).length === 0) {
Expand Down Expand Up @@ -176,7 +176,7 @@ export class DevServer {
securityContext: null,
requestId: getRequestIdFromRequest(req),
});
const tablesSchema = req.body.tablesSchema || (await driver.tablesSchema());
const tablesSchema = req.body.tablesSchema || (await driver.tablesSchemaV2());

if (!Object.values(SchemaFormat).includes(req.body.format)) {
throw new Error(`Unknown schema format. Must be one of ${Object.values(SchemaFormat)}`);
Expand Down
Loading