Commit d118100d authored by nanahira's avatar nanahira

fix

parent 423a0eb9
Pipeline #3213 passed with stages
in 40 seconds
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { User } from './entities/User';
import { Group } from './entities/Group';
export function dbConfig() {
return {
......@@ -14,7 +15,7 @@ export function typeormConfig(): TypeOrmModuleOptions {
return {
name: 'app',
type: 'mysql',
entities: [User], // entities here
entities: [User, Group], // entities here
synchronize: true,
...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