mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
import DBClient from '@/prisma/DBClient';
|
|
|
|
interface FindBeerPostLikeByIdArgs {
|
|
beerPostId: string;
|
|
likedById: string;
|
|
}
|
|
|
|
const findBeerPostLikeById = async ({
|
|
beerPostId,
|
|
likedById,
|
|
}: FindBeerPostLikeByIdArgs) =>
|
|
DBClient.instance.beerPostLike.findFirst({ where: { beerPostId, likedById } });
|
|
|
|
export default findBeerPostLikeById;
|