mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-02 22:26:57 -05:00
16 lines
331 B
TypeScript
16 lines
331 B
TypeScript
import { sql } from "~/db/sql";
|
|
import type { Tables } from "~/db/tables";
|
|
|
|
const stm = sql.prepare(/* sql */ `
|
|
delete from "TournamentSub"
|
|
where
|
|
"userId" = @userId and
|
|
"tournamentId" = @tournamentId
|
|
`);
|
|
|
|
export function deleteSub(
|
|
args: Pick<Tables["TournamentSub"], "userId" | "tournamentId">,
|
|
) {
|
|
stm.run(args);
|
|
}
|