fix: use entity.save() instead of insert (needed for caching)

This commit is contained in:
Samuel
2023-03-18 04:13:04 +01:00
parent 52f8508b38
commit 7b00e99053
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -127,10 +127,10 @@ export async function initDatabase(): Promise<DataSource> {
// Manually insert every current migration to prevent this:
await Promise.all(
dbConnection.migrations.map((migration) =>
Migration.insert({
Migration.create({
name: migration.name,
timestamp: Date.now(),
}),
}).save(),
),
);
} else {