minor fix 2
This commit is contained in:
parent
aabac6f528
commit
2911435663
@ -54,7 +54,6 @@ class ProductRemoteMediator (
|
|||||||
else -> {ProductListResponse()}
|
else -> {ProductListResponse()}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
database.withTransaction {
|
database.withTransaction {
|
||||||
if (loadType == LoadType.REFRESH) {
|
if (loadType == LoadType.REFRESH) {
|
||||||
productDao.deleteByQuery(query)
|
productDao.deleteByQuery(query)
|
||||||
|
@ -21,8 +21,4 @@ class RestUserRepository @Inject constructor(
|
|||||||
suspend fun checkLogin(user: UserModel): UserModelRemote? {
|
suspend fun checkLogin(user: UserModel): UserModelRemote? {
|
||||||
return service.checkLogin(user.toUserModelRemote())
|
return service.checkLogin(user.toUserModelRemote())
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun getUser(token: String) : UserModelRemote? {
|
|
||||||
return service.getUser(token)
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user