mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Refactor and formatting
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import DBClient from '@/prisma/DBClient';
|
||||
|
||||
const getBeerPostLikeCount = async (beerPostId: string) => {
|
||||
const count = await DBClient.instance.beerPostLike.count({
|
||||
where: { beerPostId },
|
||||
});
|
||||
|
||||
return count;
|
||||
};
|
||||
const getBeerPostLikeCount = async ({ beerPostId }: { beerPostId: string }) =>
|
||||
DBClient.instance.beerPostLike.count({ where: { beerPostId } });
|
||||
|
||||
export default getBeerPostLikeCount;
|
||||
|
||||
Reference in New Issue
Block a user