(commentId: string, data: any)
| 122 | }; |
| 123 | |
| 124 | export const updateComment = async (commentId: string, data: any) => { |
| 125 | try { |
| 126 | const commentRef = doc(db, COMMENTS, commentId); |
| 127 | await updateDoc(commentRef, data); |
| 128 | } catch (error) { |
| 129 | console.error("Error liking comment:", error); |
| 130 | throw error; |
| 131 | } |
| 132 | }; |