@@ -16,6 +16,7 @@ import { CreateCommercialData } from './commercial.service';
1616import { CreateMaintainerData } from './maintainer.service' ;
1717import { CreateAdminData } from './admin.service' ;
1818import { CreateHelperRecommendationData } from './helperRecommendation.service' ;
19+ import { SuperAdminService } from './superAdmin.service' ;
1920
2021
2122
@@ -28,7 +29,8 @@ import {
2829 CommercialType ,
2930 MaintainerType ,
3031 AdminType ,
31- HelperRecommendationType
32+ HelperRecommendationType ,
33+ SuperAdminType
3234} from './types' ;
3335
3436
@@ -41,6 +43,8 @@ export class AccountManagementService {
4143 private maintainerService : MaintainerService ;
4244 private adminService : AdminService ;
4345 private helperRecommendationService : HelperRecommendationService ;
46+ private superAdminService : SuperAdminService ;
47+
4448
4549 constructor ( ) {
4650 this . userService = new UserService ( ) ;
@@ -51,6 +55,7 @@ export class AccountManagementService {
5155 this . maintainerService = new MaintainerService ( ) ;
5256 this . adminService = new AdminService ( ) ;
5357 this . helperRecommendationService = new HelperRecommendationService ;
58+ this . superAdminService = new SuperAdminService ( ) ;
5459 }
5560
5661 // User methods
@@ -228,6 +233,11 @@ export class AccountManagementService {
228233 return this . helperRecommendationService . rejectRecommendation ( id , notes ) ;
229234 }
230235
236+ // SuperAdmin methods
237+ async getSuperAdminById ( id : string ) : Promise < SuperAdminType > {
238+ return this . superAdminService . getSuperAdminById ( id ) ;
239+ }
240+
231241
232242
233243}
0 commit comments