mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
13 lines
338 B
TypeScript
13 lines
338 B
TypeScript
import DBClient from '@/prisma/DBClient';
|
|
|
|
interface RemoveBeerStyleLikeByIdArgs {
|
|
beerStyleLikeId: string;
|
|
}
|
|
const removeBeerStyleLikeById = async ({
|
|
beerStyleLikeId,
|
|
}: RemoveBeerStyleLikeByIdArgs) => {
|
|
return DBClient.instance.beerStyleLike.delete({ where: { id: beerStyleLikeId } });
|
|
};
|
|
|
|
export default removeBeerStyleLikeById;
|