-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/link profile to auth/main #346
Conversation
…uth/persist-profile Feature/link profile to auth/persist profile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like I said can you change addTrackToBeacon in the beacon connection file so that the actual profile is used ?
@@ -26,14 +26,11 @@ class ProfileConnection( | |||
override val db = database | |||
private val coroutineScope = CoroutineScope(Dispatchers.IO + SupervisorJob()) | |||
|
|||
override fun isUidExisting(spotifyUid: String, callback: (Boolean, Profile?) -> Unit) { | |||
override fun isUidExisting(firebaseUid: String, callback: (Boolean, Profile?) -> Unit) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we said that both are the same we should probably do a refactoring of it soon where we have only one uid no ? And delete the spotify UID. Of course not for this PR
viewModelScope.launch { | ||
repository.getItem(id).collect { fetchedProfile -> | ||
suspend fun getProfileByID(id: String, create: Boolean) { | ||
repository.isUidExisting(id) { exists, fetchedProfile -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably should use getItem instead of isUidExisting
…uth/merge-main Feature/link profile to auth/merge main
…uth/set-user-profile-in-track-association Feature/link profile to auth/set user profile in track association
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #262
Feature branch merge