mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
17 lines
369 B
TypeScript
17 lines
369 B
TypeScript
import DBClient from '@/prisma/DBClient';
|
|
|
|
interface FindBeerStyleLikeByIdArgs {
|
|
beerStyleId: string;
|
|
likedById: string;
|
|
}
|
|
const findBeerStyleLikeById = async ({
|
|
beerStyleId,
|
|
likedById,
|
|
}: FindBeerStyleLikeByIdArgs) => {
|
|
return DBClient.instance.beerStyleLike.findFirst({
|
|
where: { beerStyleId, likedById },
|
|
});
|
|
};
|
|
|
|
export default findBeerStyleLikeById;
|