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