mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(core): Warn about data table module usage (no-changelog) (#18718)
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
import { Logger } from '@n8n/backend-common';
|
||||
import type { ModuleInterface } from '@n8n/decorators';
|
||||
import { BackendModule, OnShutdown } from '@n8n/decorators';
|
||||
import { Container } from '@n8n/di';
|
||||
import { BaseEntity } from '@n8n/typeorm';
|
||||
|
||||
const YELLOW = '\x1b[33m';
|
||||
const CLEAR = '\x1b[0m';
|
||||
const DATA_TABLE_WARNING_MESSAGE = `[Data Table] The data table module is experimental and subject to change.
|
||||
Any tables added before the official release may become inaccessible at any point. Use at your own risk.`;
|
||||
|
||||
@BackendModule({ name: 'data-table' })
|
||||
export class DataTableModule implements ModuleInterface {
|
||||
export class DataStoreModule implements ModuleInterface {
|
||||
async init() {
|
||||
const logger = Container.get(Logger).scoped('data-table');
|
||||
logger.warn(`${YELLOW}${DATA_TABLE_WARNING_MESSAGE}${CLEAR}`);
|
||||
|
||||
await import('./data-store.controller');
|
||||
await import('./data-store-aggregate.controller');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user