Skip to content

Commit

Permalink
Merge pull request #4769 from alkem-io/decompress-inapp
Browse files Browse the repository at this point in the history
Notification dates properly serialized
  • Loading branch information
Comoque1 authored Dec 11, 2024
2 parents d3fa7f2 + 2e5acd2 commit 4790360
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ export class InAppNotificationReceiver {
const decompressInAppNotifications = (
data: CompressedInAppNotificationPayload<InAppNotificationPayload>
): InAppNotificationPayload[] => {
const { receiverIDs, ...rest } = data;
const { receiverIDs, triggeredAt, ...rest } = data;
return receiverIDs.map(receiverID => ({
...rest,
triggeredAt: new Date(triggeredAt),
receiverID,
}));
};

0 comments on commit 4790360

Please sign in to comment.