mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 23:26:15 -05:00
Match page get rid of join tab
This commit is contained in:
@@ -1312,21 +1312,6 @@ export async function anyUserPrefersNoScreen(
|
||||
return Boolean(result);
|
||||
}
|
||||
|
||||
export async function anyUserPrefersNoSplatnet(
|
||||
userIds: number[],
|
||||
): Promise<boolean> {
|
||||
if (userIds.length === 0) return false;
|
||||
|
||||
const result = await db
|
||||
.selectFrom("User")
|
||||
.select("User.noSplatnet")
|
||||
.where("User.id", "in", userIds)
|
||||
.where("User.noSplatnet", "=", 1)
|
||||
.executeTakeFirst();
|
||||
|
||||
return Boolean(result);
|
||||
}
|
||||
|
||||
export async function socialLinksByUserId(userId: number) {
|
||||
const user = await db
|
||||
.selectFrom("User")
|
||||
|
||||
Reference in New Issue
Block a user