From 8367ced926a93d72742d8fe9a7a7a873ce0a1293 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 29 May 2026 15:23:59 +0700 Subject: [PATCH] fix(backend): fix expose name mapping bug in AiPromptResponseDto causing HTTP 500 --- backend/src/modules/ai/prompts/dto/ai-prompt-response.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/modules/ai/prompts/dto/ai-prompt-response.dto.ts b/backend/src/modules/ai/prompts/dto/ai-prompt-response.dto.ts index 67e331c5..416d25e6 100644 --- a/backend/src/modules/ai/prompts/dto/ai-prompt-response.dto.ts +++ b/backend/src/modules/ai/prompts/dto/ai-prompt-response.dto.ts @@ -11,7 +11,7 @@ import { Expose } from 'class-transformer'; * โดยคัดกรองเฉพาะข้อมูลภายนอกและปิดบัง PK ดั้งเดิมตามนโยบายความปลอดภัย */ export class AiPromptResponseDto { - @Expose({ name: 'id' }) + @Expose() publicId!: string; @Expose()