remove demo code
This commit is contained in:
@@ -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 {}
|
||||
Reference in New Issue
Block a user