Skip to content

Commit

Permalink
Add logger to avoid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Feb 13, 2024
1 parent e69fb7b commit 6351780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/db/seeds/3-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { createSecretBlindIndex, encryptAsymmetric } from "@app/lib/crypto";
import { OrgMembershipRole, TableName } from "../schemas";
import { seedData1 } from "../seed-data";
import { getConfig, initEnvConfig } from "@app/lib/config/env";
import { initLogger } from "@app/lib/logger";

export const DEFAULT_PROJECT_ENVS = [
{ name: "Development", slug: "dev" },
Expand All @@ -18,7 +19,7 @@ export const DEFAULT_PROJECT_ENVS = [
];

export async function seed(knex: Knex): Promise<void> {
initEnvConfig();
initEnvConfig(await initLogger());
const appCfg = getConfig();
// Deletes ALL existing entries
await knex(TableName.Project).del();
Expand Down

0 comments on commit 6351780

Please sign in to comment.