Update the schemas in Tenant
MODIFY
src/server/rest/service/TenantService.ts
src/server/rest/service/TenantService.ts
@@ -152,7 +152,7 @@ export default class TenantService {
public static async handleCreateTenant(action: ServerAction, req: Request, res: Response, next: NextFunction): Promise<void> {
// Validate
- const filteredRequest = TenantValidator.getInstance().validateTenantCreationRequestSuperAdmin(req.body);
+ const filteredRequest = TenantValidator.getInstance().validateTenantCreateRequestSuperAdmin(req.body);
// Check auth
if (!Authorizations.canCreateTenant(req.user)) {
throw new AppAuthError({

MODIFY
src/server/rest/validation/TenantValidation.ts
src/server/rest/validation/TenantValidation.ts
@@ -24,7 +24,7 @@ export default class TenantValidator extends SchemaValidator {
return TenantValidator._instance;
}
- public validateTenantCreationRequestSuperAdmin(tenant: Tenant): Tenant {
+ public validateTenantCreateRequestSuperAdmin(tenant: Tenant): Tenant {
// Validate schema
this.validate(this._tenantCreateReqSuperAdmin, tenant);
// Validate deps between components

Update the schemas in Tenant