mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🚀 Release 0.224.0 (#5957)
This commit is contained in:
committed by
GitHub
parent
e79679c023
commit
492496fca4
@@ -1,5 +1,9 @@
|
||||
import { UserSettings } from 'n8n-core';
|
||||
import { DataSource as Connection, DataSourceOptions as ConnectionOptions } from 'typeorm';
|
||||
import {
|
||||
DataSource as Connection,
|
||||
DataSourceOptions as ConnectionOptions,
|
||||
Repository,
|
||||
} from 'typeorm';
|
||||
import { Container } from 'typedi';
|
||||
|
||||
import config from '@/config';
|
||||
@@ -102,7 +106,7 @@ export async function terminate() {
|
||||
*/
|
||||
export async function truncate(collections: CollectionName[]) {
|
||||
for (const collection of collections) {
|
||||
await Db.collections[collection].clear();
|
||||
await (Db.collections[collection] as Repository<any>).delete({});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user