Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
chore(backend): fmt (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Sep 30, 2024
1 parent 18bfd83 commit 5b5fb26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/toolchain/build/plan/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,10 @@ export async function planProjectBuild(
// Run apply in parallel since it's non-interactive
for (const module of applyMigrations) {
// List all migrations
const migrationsCwd = resolve(module.path, "db", "migrations")
const migrationsCwd = resolve(module.path, "db", "migrations");
const migrationsRelative = await glob.glob("*.sql", { cwd: migrationsCwd });
assert(migrationsRelative.length > 0, `must have more than 1 migration for module ${module.name}`);
const migrations = migrationsRelative.map(x => resolve(migrationsCwd, x));
const migrations = migrationsRelative.map((x) => resolve(migrationsCwd, x));

buildStep(buildState, {
id: `module.${module.name}.migrate.apply`,
Expand Down

0 comments on commit 5b5fb26

Please sign in to comment.