mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Refactor and formatting
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import DBClient from '@/prisma/DBClient';
|
||||
|
||||
const removeBeerPostLikeById = async (id: string) => {
|
||||
return DBClient.instance.beerPostLike.delete({
|
||||
where: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
};
|
||||
interface RemoveBeerPostLikeArgs {
|
||||
beerLikeId: string;
|
||||
}
|
||||
|
||||
const removeBeerPostLikeById = async ({ beerLikeId }: RemoveBeerPostLikeArgs) =>
|
||||
DBClient.instance.beerPostLike.delete({ where: { id: beerLikeId } });
|
||||
|
||||
export default removeBeerPostLikeById;
|
||||
|
||||
Reference in New Issue
Block a user