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
|
}, // Use 0 if no visits exist
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
console.log('readed');
|
||||||
} else if (type === VisitType.LIKE) {
|
} else if (type === VisitType.LIKE) {
|
||||||
await db.post.update({
|
await db.post.update({
|
||||||
where: {
|
where: {
|
||||||
|
|
Loading…
Reference in New Issue