Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s

* develop:
  fix group by profile
This commit is contained in:
Warunee Tamkoo 2026-01-09 15:14:09 +07:00
commit 6c964c46ba

View file

@ -6174,7 +6174,7 @@ export class OrganizationDotnetController extends Controller {
// group by ancestorDNA แล้วเลือก create_at ล่าสุด
const grouped = new Map<string, PosMasterHistory>();
for (const item of profile) {
const key = `${item.ancestorDNA}`;
const key = `${item.profileId}`;
if (!grouped.has(key)) {
grouped.set(key, item);
} else {