diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 09d81ccf..38634422 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -7897,15 +7897,16 @@ export class ProfileController extends Controller { }, }, }); - profileNoti.map((x) => ({ + let _profileNoti = profileNoti.map((x) => ({ receiverUserId: x.id, notiLink: "", })); + console.log(profileNoti); await new CallAPI() .PostData(req, "/placement/noti/profiles", { subject: body.subject, body: body.body, - receiverUserIds: profileNoti, + receiverUserIds: _profileNoti, payload: "", //แนบไฟล์ isSendMail: true, isSendInbox: true,