fix: remove days as unit for "new series" alerts

this will give at least some specificity if it's going to be released in a day or more
This commit is contained in:
2024-09-08 14:04:56 -05:00
parent 1d606ef0d3
commit ff5e81f5d1

View File

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