All files / src/interfaces/mobile-api/employee mobile-manufacturing.controller.ts

0% Statements 0/10
0% Branches 0/6
0% Functions 0/2
0% Lines 0/8

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 16 17 18 19                                     
import { Controller, Get, Post, Body, Param, Req } from '@nestjs/common';
import { ApiTags, ApiOperation } from '@nestjs/swagger';
import { ProductionExecutionService } from '../../../domains/manufacturing/services/production-execution.service';
 
@ApiTags('Mobile Manufacturing')
@Controller('api/v1/mobile/manufacturing')
export class MobileManufacturingController {
  constructor(
    private readonly executionSvc: ProductionExecutionService
  ) {}
 
  @Post('operator/confirm')
  @ApiOperation({ summary: 'Confirm shop-floor routing operation details' })
  async confirmOperation(@Req() req: any, @Body() body: any) {
    const tenantId = req.headers['x-tenant-id'] || '60c72b2f9b1d8b23c4d5e6f1';
    return this.executionSvc.confirmOperation(tenantId, body);
  }
}