mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
12 lines
256 B
TypeScript
12 lines
256 B
TypeScript
import DBClient from '@/prisma/DBClient';
|
|
|
|
const getBeerPostLikeCount = async (beerPostId: string) => {
|
|
const count = await DBClient.instance.beerPostLike.count({
|
|
where: { beerPostId },
|
|
});
|
|
|
|
return count;
|
|
};
|
|
|
|
export default getBeerPostLikeCount;
|