mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-29 14:50:13 -05:00
Exported images w/ SQ season summary downloadable (#3272)
This commit is contained in:
@@ -557,7 +557,7 @@ async function resolveCalendarAuthorId() {
|
||||
async function resolveCalendarWindow() {
|
||||
const row = await db
|
||||
.selectFrom("CalendarEventDate")
|
||||
.select(({ fn }) => fn.max("startTime").as("maxStartTime"))
|
||||
.select(({ fn }) => fn.max("startsAt").as("maxStartTime"))
|
||||
.executeTakeFirst();
|
||||
if (typeof row?.maxStartTime !== "number") return null;
|
||||
|
||||
@@ -569,7 +569,7 @@ async function resolveCalendarWindow() {
|
||||
async function resolveScrimWindow() {
|
||||
const row = await db
|
||||
.selectFrom("ScrimPost")
|
||||
.select(({ fn }) => fn.max("at").as("maxAt"))
|
||||
.select(({ fn }) => fn.max("startsAt").as("maxAt"))
|
||||
.executeTakeFirst();
|
||||
if (typeof row?.maxAt !== "number") return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user