feat(api): user authentication

This commit is contained in:
Julian Tölle 2020-02-01 16:11:48 +01:00
parent f14eda16ac
commit f253a66f86
41 changed files with 657 additions and 338 deletions

View file

@ -1,4 +1,4 @@
import { ConfigModule, ConfigService } from "@nestjs/config";
import { ConfigService } from "@nestjs/config";
import { TypeOrmModule } from "@nestjs/typeorm";
import { join } from "path";
@ -17,9 +17,9 @@ export const DatabaseModule = TypeOrmModule.forRootAsync({
entities: [join(__dirname, "..", "**/*.entity.{ts,js}")],
// Migrations
migrationsRun: true,
migrations: [join(__dirname, "migrations", "*.{ts,js}")],
synchronize: false
// migrationsRun: true,
// migrations: [join(__dirname, "migrations", "*.{ts,js}")],
synchronize: true
}),
inject: [ConfigService]
});