fix: improve notification body for upcoming titles
This commit is contained in:
@@ -53,7 +53,7 @@ app.post("/", async (c) => {
|
|||||||
},
|
},
|
||||||
notification: {
|
notification: {
|
||||||
title: "New Series Alert",
|
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:
|
image:
|
||||||
title.media.coverImage?.medium ??
|
title.media.coverImage?.medium ??
|
||||||
title.media.coverImage?.large ??
|
title.media.coverImage?.large ??
|
||||||
|
|||||||
Reference in New Issue
Block a user