mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
- Renamed files and directories to reflect the new structure - Moved comment-related services to the 'comments' directory - Moved image-related services to the 'images' directory - Moved like-related services to the 'likes' directory - Moved post-related services to the 'posts' directory - Moved user-related services to the 'users' directory
11 lines
296 B
TypeScript
11 lines
296 B
TypeScript
import DBClient from '@/prisma/DBClient';
|
|
|
|
interface RemoveBeerPostLikeArgs {
|
|
beerLikeId: string;
|
|
}
|
|
|
|
const removeBeerPostLikeById = async ({ beerLikeId }: RemoveBeerPostLikeArgs) =>
|
|
DBClient.instance.beerPostLike.delete({ where: { id: beerLikeId } });
|
|
|
|
export default removeBeerPostLikeById;
|