Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bt4R9 committed Oct 27, 2023
1 parent 2186f99 commit d223a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/scripts/e2e/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ require('../../../index');
import * as fs from 'fs';
import {db} from '../../index';

const DEMO_WORKBOOK_ID = '1540491943966934028';
const E2E_WORKBOOK_ID = '1540491943966934028';
const PATH_TO_DATA = `/opt/e2e-data/us-e2e-data.sql`;

(async function () {
try {
await db.ready();

const result = await db.primary.raw(
`SELECT COUNT(*) AS count FROM workbooks WHERE workbook_id = ${DEMO_WORKBOOK_ID};`,
`SELECT COUNT(*) AS count FROM workbooks WHERE workbook_id = ${E2E_WORKBOOK_ID};`,
);

if (result && result.rows && result.rows[0] && result.rows[0].count === '0') {
Expand Down

0 comments on commit d223a74

Please sign in to comment.