MCPcopy Create free account
hub / github.com/Hazrat-Ali9/Problem-Solving-Frontend / updateComment

Function updateComment

lib/firebase/comment.ts:124–132  ·  view source on GitHub ↗
(commentId: string, data: any)

Source from the content-addressed store, hash-verified

122};
123
124export 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};

Callers 1

likeCommentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected