mirror of
https://github.com/urosran/cally.git
synced 2025-07-16 01:56:16 +00:00
- Implemented assigning todos
This commit is contained in:
@ -15,10 +15,24 @@ export const useGetFamilyMembers = (excludeSelf?: boolean) => {
|
||||
.get();
|
||||
|
||||
if (excludeSelf) {
|
||||
return snapshot.docs.map((doc) => doc.data()).filter((doc) => doc.id !== user?.uid) as UserProfile[];
|
||||
return snapshot.docs.map((doc) => {
|
||||
let documentData = doc.data();
|
||||
|
||||
return {
|
||||
...documentData,
|
||||
uid: doc.id
|
||||
}
|
||||
}).filter((doc) => doc.id !== user?.uid) as UserProfile[];
|
||||
}
|
||||
|
||||
return snapshot.docs.map((doc) => doc.data()) as UserProfile[];
|
||||
return snapshot.docs.map((doc) => {
|
||||
let documentData = doc.data();
|
||||
|
||||
return {
|
||||
...documentData,
|
||||
uid: doc.id
|
||||
}
|
||||
}) as UserProfile[];
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user