mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-22 02:55:52 -05:00
More consistent date columns
This commit is contained in:
@@ -1014,8 +1014,8 @@ export function buildCases(fx: Fixtures): {
|
||||
add("UserRepository.inGameNameByUserId", fx.heavyUser, (user) =>
|
||||
UserRepository.inGameNameByUserId(user.id),
|
||||
);
|
||||
add("UserRepository.patronSinceByUserId", fx.heavyUser, (user) =>
|
||||
UserRepository.patronSinceByUserId(user.id),
|
||||
add("UserRepository.patronStartedAtByUserId", fx.heavyUser, (user) =>
|
||||
UserRepository.patronStartedAtByUserId(user.id),
|
||||
);
|
||||
add("UserRepository.joinOrderByUserId", fx.heavyUser, (user) =>
|
||||
UserRepository.joinOrderByUserId(user.id),
|
||||
|
||||
@@ -644,9 +644,9 @@ async function resolveHeavyOrg() {
|
||||
"CalendarEventDate.eventId",
|
||||
"CalendarEvent.id",
|
||||
)
|
||||
.select(["CalendarEvent.name", "CalendarEventDate.startTime"])
|
||||
.select(["CalendarEvent.name", "CalendarEventDate.startsAt"])
|
||||
.where("CalendarEvent.organizationId", "=", orgRow.id)
|
||||
.orderBy("CalendarEventDate.startTime", "desc")
|
||||
.orderBy("CalendarEventDate.startsAt", "desc")
|
||||
.limit(1)
|
||||
.executeTakeFirst();
|
||||
if (!latestEvent) return null;
|
||||
|
||||
Reference in New Issue
Block a user