Commit 1aa94c40 authored by nanahira's avatar nanahira

fix

parent 11212c9f
Pipeline #3085 passed with stages
in 1 minute and 8 seconds
import { TypeOrmModuleOptions } from '@nestjs/typeorm'; import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { User } from './entities/User';
export function dbConfig() { export function dbConfig() {
return { return {
...@@ -13,7 +14,7 @@ export function typeormConfig(): TypeOrmModuleOptions { ...@@ -13,7 +14,7 @@ export function typeormConfig(): TypeOrmModuleOptions {
return { return {
name: 'app', name: 'app',
type: 'mysql', type: 'mysql',
entities: [], // entities here entities: [User], // entities here
synchronize: true, synchronize: true,
...dbConfig(), ...dbConfig(),
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment