@ssgc/alert-console 2.10.8 → 2.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -9205,7 +9205,7 @@ const Tc = ({
|
|
|
9205
9205
|
status: It(A?.messageStatus),
|
|
9206
9206
|
notificationReceipientType: A?.notificationReceipientType || ""
|
|
9207
9207
|
}), kt = (A, H) => {
|
|
9208
|
-
const ae = H.map(xe), Ie = ae.filter((xt) => xt.status === "Delivered").length, Re = H.map((xt) => xt?.sentAt).filter(Boolean).sort((xt, gt) => new Date(
|
|
9208
|
+
const ae = H.map(xe), Ie = ae.filter((xt) => xt.status === "Delivered").length, Re = H.map((xt) => xt?.sentAt).filter(Boolean).sort((xt, gt) => new Date(xt).getTime() - new Date(gt).getTime())[0], ge = (H[0] || {})?.severityName || `${A} Notification`;
|
|
9209
9209
|
return {
|
|
9210
9210
|
channelLabel: `${A} Notification`,
|
|
9211
9211
|
sentAt: Re || "",
|