I want to keep the app scanning for qr codes if it doesnt match the userId..
So my question is, how can I check if a user already exists in my room db?
@Query("select * from user_table where id= :id")
fun getUserById(id: Int) : User
I previously tried this, because I could need the user object in return by the function. But it only return a Kotlin.Unit
val currentuser = mUserViewModel.getUserById(sId)