Fix compilation errors.
This commit is contained in:
parent
a8ff48b984
commit
16a8920ce5
2 changed files with 5 additions and 4 deletions
|
@ -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>>
|
||||||
|
|
|
@ -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>>
|
||||||
}
|
}
|
Loading…
Reference in a new issue