From ff5e81f5d184193cb5f479049530f0d00865e225 Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Sun, 8 Sep 2024 14:04:56 -0500 Subject: [PATCH] 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 --- src/controllers/upcoming-titles/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/upcoming-titles/index.ts b/src/controllers/upcoming-titles/index.ts index f97934a..7024b42 100644 --- a/src/controllers/upcoming-titles/index.ts +++ b/src/controllers/upcoming-titles/index.ts @@ -46,7 +46,7 @@ app.post("/", async (c) => { }, notification: { 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: title.media.coverImage?.medium ?? title.media.coverImage?.large ??