fix: resolve TypeScript errors in orchestrator and API
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Fixed CI typecheck failures: - Added missing AgentLifecycleService dependency to AgentsController test mocks - Made validateToken method async to match service return type - Fixed formatting in federation.module.ts All affected tests pass. Typecheck now succeeds. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -135,7 +135,7 @@ export class FederationAuthController {
|
||||
*/
|
||||
@Post("validate")
|
||||
@Throttle({ short: { limit: 3, ttl: 1000 } })
|
||||
validateToken(@Body() dto: ValidateFederatedTokenDto): FederatedTokenValidation {
|
||||
async validateToken(@Body() dto: ValidateFederatedTokenDto): Promise<FederatedTokenValidation> {
|
||||
this.logger.debug(`Validating federated token from ${dto.instanceId}`);
|
||||
|
||||
return this.oidcService.validateToken(dto.token, dto.instanceId);
|
||||
|
||||
Reference in New Issue
Block a user