🐛 Deactivate database-synchronize in production mode

This commit is contained in:
Jan Oberhauser 2019-08-04 14:45:56 +02:00
parent fbb4d1bdc0
commit e7328cd0d9

View file

@ -67,7 +67,7 @@ export async function init(): Promise<IDatabaseCollections> {
Object.assign(connectionOptions, {
entities: Object.values(entities),
synchronize: true,
synchronize: process.env['NODE_ENV'] !== 'production',
logging: false
});