All files / src/execution-logs execution-logs.controller.ts

87.5% Statements 7/8
100% Branches 0/0
50% Functions 1/2
83.33% Lines 5/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 166x 6x       6x 6x     6x            
import { Controller, Get, Param, ParseUUIDPipe } from '@nestjs/common';
import { ExecutionLogsService } from './execution-logs.service';
import { ExecutionLog } from '../core-entities';
 
@Controller() // No common prefix for these specific routes
export class ExecutionLogsController {
  constructor(private readonly executionLogsService: ExecutionLogsService) {}
 
  @Get('actions/:actionId/logs')
  async findAllByActionId(
    @Param('actionId', ParseUUIDPipe) actionId: string,
  ): Promise<ExecutionLog[]> {
    return this.executionLogsService.findAllByActionId(actionId);
  }
}