Skip to content

Commit

Permalink
Add fallback for empty userId by using null in Firestore query
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneh-s committed Jan 10, 2025
1 parent ac43e50 commit 833ab29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class ApiUserService @Inject constructor(
last_name = account?.familyName ?: "",
provider_firebase_id_token = firebaseToken,
profile_image = account?.photoUrl?.toString() ?: firebaseUser?.photoUrl?.toString()
?: ""
?: ""
)
userRef.document(uid).set(user).await()
val sessionDocRef = sessionRef(user.id).document()
Expand Down

0 comments on commit 833ab29

Please sign in to comment.