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

Function updateUser

lib/firebase/user.ts:56–64  ·  view source on GitHub ↗
(uid: string, data: any)

Source from the content-addressed store, hash-verified

54};
55
56export const updateUser = async (uid: string, data: any) => {
57 try {
58 const docRef = doc(db, USERS, uid);
59 const docSnap = await updateDoc(docRef, data);
60 return docSnap;
61 } catch (error) {
62 throw error;
63 }
64};

Callers 1

onFinishFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected