mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
ci: Fix linting issue on master (no-changelog) (#6222)
This commit is contained in:
parent
500c0ebce3
commit
c42ae651a0
|
@ -1,5 +1,5 @@
|
||||||
import { UserSettings } from 'n8n-core';
|
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 { DataSource as Connection } from 'typeorm';
|
||||||
import { Container } from 'typedi';
|
import { Container } from 'typedi';
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ export async function terminate() {
|
||||||
*/
|
*/
|
||||||
export async function truncate(collections: CollectionName[]) {
|
export async function truncate(collections: CollectionName[]) {
|
||||||
for (const collection of collections) {
|
for (const collection of collections) {
|
||||||
await (Db.collections[collection] as Repository<any>).delete({});
|
await Db.collections[collection].delete({});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue