mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-23 18:40:44 +02:00
chore(core): Rename Data Store module to Data Table (no-changelog) (#18675)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import type { ModuleInterface } from '@n8n/decorators';
|
||||
import { BackendModule, OnShutdown } from '@n8n/decorators';
|
||||
import { Container } from '@n8n/di';
|
||||
import { BaseEntity } from '@n8n/typeorm';
|
||||
|
||||
@BackendModule({ name: 'data-table' })
|
||||
export class DataTableModule implements ModuleInterface {
|
||||
async init() {
|
||||
await import('./data-store.controller');
|
||||
await import('./data-store-aggregate.controller');
|
||||
|
||||
const { DataStoreService } = await import('./data-store.service');
|
||||
await Container.get(DataStoreService).start();
|
||||
|
||||
const { DataStoreAggregateService } = await import('./data-store-aggregate.service');
|
||||
await Container.get(DataStoreAggregateService).start();
|
||||
}
|
||||
|
||||
@OnShutdown()
|
||||
async shutdown() {
|
||||
const { DataStoreService } = await import('./data-store.service');
|
||||
await Container.get(DataStoreService).shutdown();
|
||||
|
||||
const { DataStoreAggregateService } = await import('./data-store-aggregate.service');
|
||||
await Container.get(DataStoreAggregateService).start();
|
||||
}
|
||||
|
||||
async entities() {
|
||||
const { DataStore } = await import('./data-store.entity');
|
||||
const { DataStoreColumn } = await import('./data-store-column.entity');
|
||||
|
||||
return [DataStore, DataStoreColumn] as unknown as Array<new () => BaseEntity>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user