fix(backend): Formatting + .env.development.example
npm run format uitgevoerd, .env.development.example toegevoegd.
This commit is contained in:
parent
4e883a1a18
commit
48c8ce7c57
36 changed files with 499 additions and 331 deletions
|
@ -1,7 +1,7 @@
|
|||
import {Options} from '@mikro-orm/core';
|
||||
import {PostgreSqlDriver} from "@mikro-orm/postgresql";
|
||||
import {EnvVars, getEnvVar, getNumericEnvVar} from "./util/envvars";
|
||||
import {SqliteDriver} from "@mikro-orm/sqlite";
|
||||
import { Options } from '@mikro-orm/core';
|
||||
import { PostgreSqlDriver } from '@mikro-orm/postgresql';
|
||||
import { EnvVars, getEnvVar, getNumericEnvVar } from './util/envvars';
|
||||
import { SqliteDriver } from '@mikro-orm/sqlite';
|
||||
|
||||
const entities = ['dist/**/*.entity.js'];
|
||||
const entitiesTs = ['src/**/*.entity.ts'];
|
||||
|
@ -15,7 +15,7 @@ function config(testingMode: boolean = false): Options {
|
|||
|
||||
// Workaround: vitest: `TypeError: Unknown file extension ".ts"` (ERR_UNKNOWN_FILE_EXTENSION)
|
||||
// (see https://mikro-orm.io/docs/guide/project-setup#testing-the-endpoint)
|
||||
dynamicImportProvider: id => import(id)
|
||||
dynamicImportProvider: (id) => import(id),
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
|
@ -27,7 +27,7 @@ function config(testingMode: boolean = false): Options {
|
|||
password: getEnvVar(EnvVars.DbPassword),
|
||||
entities: entities,
|
||||
entitiesTs: entitiesTs,
|
||||
debug: true
|
||||
debug: true,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue