fanavaran configs seeding

This commit is contained in:
2026-08-03 09:55:30 +03:30
parent ca5c1900ff
commit f7b7cd13e8
5 changed files with 285 additions and 18 deletions

View File

@@ -5,11 +5,16 @@ import { MongooseModule } from "@nestjs/mongoose";
import { createHttpModuleOptions } from "src/core/config/http-proxy.factory";
import { FanavaranAuditModule } from "./fanavaran-audit.module";
import { FanavaranAuthService } from "./fanavaran-auth.service";
import { FanavaranClientConfigService } from "./fanavaran-client-config.service";
import { FanavaranLookupService } from "./fanavaran-lookup.service";
import {
FanavaranAuthToken,
FanavaranAuthTokenSchema,
} from "./schema/fanavaran-auth-token.schema";
import {
FanavaranClientConfig,
FanavaranClientConfigSchema,
} from "./schema/fanavaran-client-config.schema";
@Module({
imports: [
@@ -20,10 +25,22 @@ import {
}),
MongooseModule.forFeature([
{ name: FanavaranAuthToken.name, schema: FanavaranAuthTokenSchema },
{
name: FanavaranClientConfig.name,
schema: FanavaranClientConfigSchema,
},
]),
FanavaranAuditModule,
],
providers: [FanavaranAuthService, FanavaranLookupService],
exports: [FanavaranAuthService, FanavaranLookupService],
providers: [
FanavaranClientConfigService,
FanavaranAuthService,
FanavaranLookupService,
],
exports: [
FanavaranClientConfigService,
FanavaranAuthService,
FanavaranLookupService,
],
})
export class FanavaranLookupModule {}