แก้บรรจุแต่งตั้ง รายชื่อที่สอบผ่าน

This commit is contained in:
Warunee Tamkoo 2024-10-28 12:16:50 +07:00
parent 627696ea65
commit e6dcc39765
5 changed files with 87 additions and 102 deletions

View file

@ -63,7 +63,8 @@ async function addAvatarToData(item: any) {
// avatar item
const updatedItem = {
...item,
avatar: item.avatar ? await fetchProfile(item.avatar) : avatar,
// avatar: item.avatar ? await fetchProfile(item.avatar) : avatar,
avatar: avatar,
// item children
children: item.children
? await Promise.all(item.children.map(addAvatarToData))