Skip to content

Commit 833ab29

Browse files
committed
Add fallback for empty userId by using null in Firestore query
1 parent ac43e50 commit 833ab29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/src/main/java/com/canopas/yourspace/data/service/user/ApiUserService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class ApiUserService @Inject constructor(
108108
last_name = account?.familyName ?: "",
109109
provider_firebase_id_token = firebaseToken,
110110
profile_image = account?.photoUrl?.toString() ?: firebaseUser?.photoUrl?.toString()
111-
?: ""
111+
?: ""
112112
)
113113
userRef.document(uid).set(user).await()
114114
val sessionDocRef = sessionRef(user.id).document()

0 commit comments

Comments
 (0)