add
This commit is contained in:
parent
939a313c9e
commit
0081ccf3f2
|
@ -20,6 +20,7 @@ export async function updatePostViewCount(id: string, type: VisitType) {
|
|||
}, // Use 0 if no visits exist
|
||||
},
|
||||
});
|
||||
console.log('readed');
|
||||
} else if (type === VisitType.LIKE) {
|
||||
await db.post.update({
|
||||
where: {
|
||||
|
|
Loading…
Reference in New Issue