Skip to content

Commit

Permalink
Merge branch 'staging' into 10285-design-debt
Browse files Browse the repository at this point in the history
  • Loading branch information
btejha authored Dec 13, 2024
2 parents 8e38f46 + af8e9ca commit d48fe23
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion web-api/src/persistence/postgres/utils/migrate/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ async function migrateToLatest() {
});
}

migrateToLatest().catch;
migrateToLatest()
.then(() => {
console.log('Postgres migration completed Successfully!');
process.exit(0);
})
.catch(err => {
console.log('Migration failed.');
console.log(err);
});
10 changes: 9 additions & 1 deletion web-api/src/persistence/postgres/utils/seed/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@ export const seed = async () => {
);
};

seed().catch;
seed()
.then(() => {
console.log('Database data seeded successfully!');
process.exit(0);
})
.catch(err => {
console.log('Could not seed postgres data.');
console.log(err);
});

0 comments on commit d48fe23

Please sign in to comment.