mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
ci: Fix linting issue on master (no-changelog) (#6222)
This commit is contained in:
committed by
GitHub
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({});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user