690524:1435 ADR-028-228-migration #03
CI / CD Pipeline / build (push) Successful in 3m59s
CI / CD Pipeline / deploy (push) Successful in 5m18s

This commit is contained in:
2026-05-24 14:35:05 +07:00
parent a63fe0fb5c
commit 93fd95a6b3
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -696,6 +696,7 @@ export class AiController {
@Get('migration/checkpoint/:batchId')
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()
@Throttle({ default: { limit: 500, ttl: 60000 } }) // 500 req/min for n8n workflow loop
@ApiOperation({ summary: 'Migration: ดึง Checkpoint ของ Batch (ADR-023A)' })
@ApiParam({
name: 'batchId',
@@ -708,6 +709,7 @@ export class AiController {
@Post('migration/checkpoint')
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()
@Throttle({ default: { limit: 500, ttl: 60000 } }) // 500 req/min for n8n workflow loop
@HttpCode(HttpStatus.OK)
@ApiOperation({ summary: 'Migration: บันทึก/อัพเดต Checkpoint (ADR-023A)' })
async saveMigrationCheckpoint(@Body() dto: SaveCheckpointDto) {
@@ -717,6 +719,7 @@ export class AiController {
@Post('migration/queue/record')
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()
@Throttle({ default: { limit: 500, ttl: 60000 } }) // 500 req/min for n8n workflow loop
@HttpCode(HttpStatus.OK)
@ApiOperation({
summary: 'Migration: บันทึกรายการเข้า Review Queue (ADR-023A)',
@@ -728,6 +731,7 @@ export class AiController {
@Post('migration/errors')
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()
@Throttle({ default: { limit: 500, ttl: 60000 } }) // 500 req/min for n8n workflow loop
@HttpCode(HttpStatus.OK)
@ApiOperation({ summary: 'Migration: บันทึก Error Log (ADR-023A)' })
async logMigrationError(@Body() dto: MigrationErrorLogDto) {