minor fix 2

This commit is contained in:
Данила Мочалов 2023-12-23 18:42:11 +04:00
parent aabac6f528
commit 2911435663
2 changed files with 0 additions and 5 deletions

View File

@ -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)

View File

@ -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)
}
} }