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

Function updateBlog

lib/firebase/blogs.ts:143–150  ·  view source on GitHub ↗
(blogId: string, data: any)

Source from the content-addressed store, hash-verified

141};
142
143export async function updateBlog(blogId: string, data: any) {
144 try {
145 await updateDoc(doc(db, BLOGS, blogId), data);
146 } catch (error) {
147 console.error("Error updating blog:", error);
148 throw error;
149 }
150}
151export async function deleteBlog(blogId: string) {
152 try {
153 // Reference to the comments collection

Callers 1

handleSubmitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected