mirror of
https://github.com/urosran/cally.git
synced 2025-11-27 00:44:54 +00:00
Added attendees
This commit is contained in:
@ -14,7 +14,8 @@ export const useGetEvents = () => {
|
||||
queryFn: async () => {
|
||||
const eventsQuery = firestore()
|
||||
.collection("Events")
|
||||
.where("creatorId", "==", user?.uid);
|
||||
.where("creatorId", "==", user?.uid)
|
||||
.where("attendees", "array-contains", user?.uid);
|
||||
|
||||
if (isFamilyView) {
|
||||
eventsQuery.where("familyID", "==", profileData?.familyId);
|
||||
|
||||
Reference in New Issue
Block a user