Skip to content

Commit 2296638

Browse files
authored
Merge pull request #28 from SwEnt-Group13/chore/associations
chore(Association): Add URL field to association hydration
2 parents edd6223 + bd2b14e commit 2296638

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/com/android/unio/model/association/AssociationRepositoryFirestore.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class AssociationRepositoryFirestore(private val db: FirebaseFirestore) : Associ
3636
fun hydrate(doc: DocumentSnapshot): Association {
3737
return Association(
3838
uid = doc.id,
39+
url = doc.getString("url") ?: "",
3940
acronym = doc.getString("acronym") ?: "",
4041
fullName = doc.getString("fullName") ?: "",
4142
description = doc.getString("description") ?: "",

0 commit comments

Comments
 (0)