mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
NOtification update
This commit is contained in:
@ -4,7 +4,7 @@ import firestore from "@react-native-firebase/firestore";
|
||||
import { EventData } from "@/hooks/firebase/types/eventData";
|
||||
|
||||
export const useCreateEvent = () => {
|
||||
const {user: currentUser} = useAuthContext()
|
||||
const {user: currentUser, profileData} = useAuthContext()
|
||||
const queryClients = useQueryClient()
|
||||
|
||||
return useMutation({
|
||||
@ -14,7 +14,7 @@ export const useCreateEvent = () => {
|
||||
console.log("CALLLLL")
|
||||
await firestore()
|
||||
.collection("Events")
|
||||
.add({...eventData, creatorId: currentUser?.uid})
|
||||
.add({...eventData, creatorId: currentUser?.uid, familyId: profileData?.familyId})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user