Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jun 24, 2024
1 parent 64767cc commit 3a8082c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/db-migrate/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ console.log("launched...");
const connectionStr = new URL(
`mysql://${process.env.DB_HOST}/${process.env.DB_NAME}`,
);
connectionStr.username = process.env.DB_USERNAME as string;
connectionStr.password = process.env.DB_PASSWORD as string;

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
connectionStr.username = process.env.DB_USERNAME!;

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
connectionStr.password = process.env.DB_PASSWORD!;

const sql = await mysql.createConnection(connectionStr.href);
const db = drizzle(sql);
Expand Down

0 comments on commit 3a8082c

Please sign in to comment.