Files
back-ts/src/cards/cards.module.ts
T
2024-06-11 14:57:02 -04:00

26 lines
699 B
TypeScript

import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { Card, CardSchema } from './schemas/cards.schema';
import { CardsService } from './cards.service';
// import {
// Effect,
// EffectCondition,
// EffectConditionSchema,
// EffectSchema,
// } from './schemas/effect.schema';
@Module({
imports: [
MongooseModule.forFeature([
// { name: Effect.name, schema: EffectSchema },
// { name: EffectCondition.name, schema: EffectConditionSchema },
{ name: Card.name, schema: CardSchema },
]),
],
providers: [CardsService],
exports: [MongooseModule, CardsService],
})
export class CardsModule {
schema = CardSchema;
}