Database
Updated to just use DATABASE_* in everything other than local docker.
This commit is contained in:
19 files changed
+120
-56
No files matched your search
@@ -20,7 +20,7 @@ import { SEEDED, completeBookingFlow, signIn, uniqueEmail } from "./helpers";
|
||||
|
||||
test.describe.serial("owner administration journeys", () => {
|
||||
test.afterAll(async () => {
|
||||
const pool = createPool(buildMysqlPoolConfig(process.env.DATABASE_URL));
|
||||
const pool = createPool(buildMysqlPoolConfig());
|
||||
// Journey 7 creates a category/service with no deterministic id to
|
||||
// upsert against on a re-run — clean up by name instead.
|
||||
await pool.query("DELETE FROM `Service` WHERE name LIKE 'E2E Test Service%'");
|
||||
@@ -108,7 +108,7 @@ test.describe.serial("owner administration journeys", () => {
|
||||
// them from an earlier seed run their date is whatever it was back
|
||||
// then, not necessarily still "N days from today" — read the real date
|
||||
// straight from the database instead of predicting it from wall-clock time.
|
||||
const pool = createPool(buildMysqlPoolConfig(process.env.DATABASE_URL));
|
||||
const pool = createPool(buildMysqlPoolConfig());
|
||||
const rows = await pool.query<{ id: string; start_at: Date; first_name: string; last_name: string }[]>(
|
||||
"SELECT a.id, a.startAt as start_at, c.firstName as first_name, c.lastName as last_name" +
|
||||
" FROM Appointment a JOIN CustomerProfile c ON c.id = a.customerId" +
|
||||
|
||||
Reference in new issue
Block a user