diff --git a/packages/cli/test/integration/shared/testDb.ts b/packages/cli/test/integration/shared/testDb.ts index 08eb9fce2e..de32f312cc 100644 --- a/packages/cli/test/integration/shared/testDb.ts +++ b/packages/cli/test/integration/shared/testDb.ts @@ -1,5 +1,5 @@ import { UserSettings } from 'n8n-core'; -import type { DataSourceOptions as ConnectionOptions, Repository } from 'typeorm'; +import type { DataSourceOptions as ConnectionOptions } from 'typeorm'; import { DataSource as Connection } from 'typeorm'; import { Container } from 'typedi'; @@ -115,7 +115,7 @@ export async function terminate() { */ export async function truncate(collections: CollectionName[]) { for (const collection of collections) { - await (Db.collections[collection] as Repository).delete({}); + await Db.collections[collection].delete({}); } }