remove demo code

This commit is contained in:
2026-01-03 11:38:51 +01:00
parent 2f21dc4595
commit 9a7efa496f
38 changed files with 1535 additions and 1157 deletions

View File

@@ -1,11 +1,14 @@
/**
* Admin Persistence Module
*
* Abstract module interface for admin persistence.
* Both InMemory and TypeORM implementations should export this.
*/
import { Module } from '@nestjs/common';
@Module({})
import { getApiPersistence } from '../../env';
import { InMemoryAdminPersistenceModule } from '../inmemory/InMemoryAdminPersistenceModule';
import { PostgresAdminPersistenceModule } from '../postgres/PostgresAdminPersistenceModule';
const selectedPersistenceModule =
getApiPersistence() === 'postgres' ? PostgresAdminPersistenceModule : InMemoryAdminPersistenceModule;
@Module({
imports: [selectedPersistenceModule],
exports: [selectedPersistenceModule],
})
export class AdminPersistenceModule {}