From 4817563dc197637826cdf823bf06f6c36bcbb79d Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 25 Jan 2021 16:21:24 +0100 Subject: [PATCH] Make models and components available immediately after their migration --- src/db/MysqlConnectionManager.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/db/MysqlConnectionManager.ts b/src/db/MysqlConnectionManager.ts index cc8600d..1b973cb 100644 --- a/src/db/MysqlConnectionManager.ts +++ b/src/db/MysqlConnectionManager.ts @@ -206,9 +206,7 @@ export default class MysqlConnectionManager { ]); }); } - } - for (const migration of this.migrations) { migration.registerModels?.(); } }