fix: improve notification body for upcoming titles

This commit is contained in:
2024-09-03 22:07:31 -04:00
parent 96cf212106
commit 7f950d5dc3

View File

@@ -53,7 +53,7 @@ app.post("/", async (c) => {
},
notification: {
title: "New Series Alert",
body: `${titleName} will be released on ${DateTime.fromSeconds(title.airingAt).toRelative({ unit: "days" })}`,
body: `${titleName} will be released ${DateTime.fromSeconds(title.airingAt).toRelative({ unit: ["days", "hours", "minutes"] })}`,
image:
title.media.coverImage?.medium ??
title.media.coverImage?.large ??