mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
Added attendees
This commit is contained in:
@ -11,4 +11,5 @@ export interface EventData {
|
||||
notes?: string,
|
||||
reminders?: string[]
|
||||
id?: string | number,
|
||||
attendees?: string[]
|
||||
}
|
||||
@ -17,6 +17,7 @@ export interface UserProfile {
|
||||
password: string;
|
||||
familyId?: string;
|
||||
uid?: string;
|
||||
pfp?: string;
|
||||
googleToken?: string | null;
|
||||
microsoftToken?: string | null;
|
||||
appleToken?: string | null;
|
||||
|
||||
@ -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