mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-28 10:17:12 -05:00
10 lines
219 B
TypeScript
10 lines
219 B
TypeScript
import { db } from "~/db/sql";
|
|
|
|
export function unlinkPlayerByUserId(userId: number) {
|
|
return db
|
|
.updateTable("SplatoonPlayer")
|
|
.set({ userId: null })
|
|
.where("SplatoonPlayer.userId", "=", userId)
|
|
.execute();
|
|
}
|