mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-26 01:09:02 -05:00
12 lines
252 B
TypeScript
12 lines
252 B
TypeScript
import { sql } from "~/db/sql";
|
|
|
|
const groupToInactiveStm = sql.prepare(/* sql */ `
|
|
update "Group"
|
|
set "status" = 'INACTIVE'
|
|
where "id" = @groupId
|
|
`);
|
|
|
|
export function setGroupAsInactive(groupId: number) {
|
|
groupToInactiveStm.run({ groupId });
|
|
}
|