From 0239f22e40e0c349250646d9eb06a589c16c576a Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 9 Jan 2026 15:13:57 +0700 Subject: [PATCH] fix group by profile --- src/controllers/OrganizationDotnetController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index 706cb318..888e69ad 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -6174,7 +6174,7 @@ export class OrganizationDotnetController extends Controller { // group by ancestorDNA แล้วเลือก create_at ล่าสุด const grouped = new Map(); for (const item of profile) { - const key = `${item.ancestorDNA}`; + const key = `${item.profileId}`; if (!grouped.has(key)) { grouped.set(key, item); } else {