Fix compilation errors.

This commit is contained in:
Severiano Jaramillo 2018-11-01 18:45:06 -06:00
parent a8ff48b984
commit 16a8920ce5
2 changed files with 5 additions and 4 deletions

View file

@ -9,7 +9,7 @@ import cy.agorise.bitsybitshareswallet.models.BrainKey
@Dao @Dao
interface BrainKeyDao { interface BrainKeyDao {
@Insert @Insert
fun insert(asset: BrainKeyDao) fun insert(brainKey: BrainKey)
@Query("SELECT * FROM brain_keys") @Query("SELECT * FROM brain_keys")
fun getAllBrainKeys(): LiveData<List<BrainKey>> fun getAllBrainKeys(): LiveData<List<BrainKey>>

View file

@ -5,12 +5,13 @@ import androidx.room.Dao
import androidx.room.Insert import androidx.room.Insert
import androidx.room.Query import androidx.room.Query
import cy.agorise.bitsybitshareswallet.models.Authority import cy.agorise.bitsybitshareswallet.models.Authority
import cy.agorise.bitsybitshareswallet.models.UserAccountAuthority
@Dao @Dao
interface UserAccountAuthorityDao { interface UserAccountAuthorityDao {
@Insert @Insert
fun insert(userAccountAuthorityDao: UserAccountAuthorityDao) fun insert(userAccountAuthority: UserAccountAuthority)
@Query("SELECT * FROM user_accounts INNER JOIN user_accounts__authorities ON user_accounts.id=user_accounts__authorities.user_account_id WHERE user_accounts__authorities.user_account_id=:userAccountId") // @Query("SELECT * FROM authorities INNER JOIN user_accounts__authorities ON user_accounts.id=user_accounts__authorities.user_account_id WHERE user_accounts__authorities.user_account_id=:userAccountId")
fun getAuthoritiesForUserAccount(userAccountId: String): LiveData<List<Authority>> // fun getAuthoritiesForUserAccount(userAccountId: String): LiveData<List<Authority>>
} }