chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-19 18:28:20 +00:00
parent b20b569b0e
commit a99337fbe1
8 changed files with 19 additions and 13 deletions

View File

@@ -111,10 +111,7 @@ export namespace Referral {
isNull(UserTable.timeDeleted),
),
)
.leftJoin(
AuthTable,
and(eq(AuthTable.accountID, UserTable.accountID), eq(AuthTable.provider, "email")),
)
.leftJoin(AuthTable, and(eq(AuthTable.accountID, UserTable.accountID), eq(AuthTable.provider, "email")))
.where(and(eq(ReferralTable.inviteeAccountID, accountID), isNull(ReferralTable.timeDeleted)))
.orderBy(asc(UserTable.timeCreated))
.then((rows) => rows.find((row) => row.inviterEmail) ?? rows[0]),