fix(backend): Formatting

This commit is contained in:
Gerald Schmittinger 2025-02-26 23:18:56 +01:00
parent ee5fe4774e
commit e03fe12604
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import express, { Express, Response } from 'express';
import { initORM } from './orm.js';
import {EnvVars, getNumericEnvVar} from "./util/envvars.js";
import { EnvVars, getNumericEnvVar } from './util/envvars.js';
const app: Express = express();
const port: string | number = getNumericEnvVar(EnvVars.Port);

View file

@ -4,7 +4,7 @@ const DB_PREFIX = PREFIX + 'DB_';
type EnvVar = { key: string; required?: boolean; defaultValue?: any };
export const EnvVars: { [key: string]: EnvVar } = {
Port: { key: PREFIX + "PORT", defaultValue: 3000 },
Port: { key: PREFIX + 'PORT', defaultValue: 3000 },
DbHost: { key: DB_PREFIX + 'HOST', required: true },
DbPort: { key: DB_PREFIX + 'PORT', defaultValue: 5432 },
DbName: { key: DB_PREFIX + 'NAME', defaultValue: 'dwengo' },