mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
16 lines
250 B
TypeScript
16 lines
250 B
TypeScript
import { db } from "~/db/sql";
|
|
|
|
export function unlinkUserFromArt({
|
|
userId,
|
|
artId,
|
|
}: {
|
|
userId: number;
|
|
artId: number;
|
|
}) {
|
|
return db
|
|
.deleteFrom("ArtUserMetadata")
|
|
.where("artId", "=", artId)
|
|
.where("userId", "=", userId)
|
|
.execute();
|
|
}
|