tema 675f7d5cfd Remove cached profile fields migration and update CSRF middleware for new public auth endpoints
- Deleted migration file that removed cached profile fields from the users table, centralizing profile data retrieval from WHMCS.
- Updated CsrfMiddleware to include new public authentication endpoints for password reset, setting password, and WHMCS account linking.
- Enhanced error handling in password and WHMCS linking workflows to provide clearer feedback on missing mappings and improve user experience.
- Adjusted user creation and update methods in UsersFacade to handle cases where WHMCS mappings are not yet available, ensuring smoother account setup.
2025-11-21 17:12:34 +09:00

29 lines
997 B
TypeScript

import { Module, forwardRef, Inject, Optional } from "@nestjs/common";
import { FreebitOrchestratorService } from "./services/freebit-orchestrator.service";
import { FreebitMapperService } from "./services/freebit-mapper.service";
import { FreebitOperationsService } from "./services/freebit-operations.service";
import { FreebitClientService } from "./services/freebit-client.service";
import { FreebitAuthService } from "./services/freebit-auth.service";
@Module({
imports: [
forwardRef(() => {
const { SimManagementModule } = require("../../modules/subscriptions/sim-management/sim-management.module");
return SimManagementModule;
}),
],
providers: [
// Core services
FreebitClientService,
FreebitAuthService,
FreebitMapperService,
FreebitOperationsService,
FreebitOrchestratorService,
],
exports: [
// Export orchestrator in case other services need direct access
FreebitOrchestratorService,
],
})
export class FreebitModule {}