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()}
}
database.withTransaction {
if (loadType == LoadType.REFRESH) {
productDao.deleteByQuery(query)

View File

@ -21,8 +21,4 @@ class RestUserRepository @Inject constructor(
suspend fun checkLogin(user: UserModel): UserModelRemote? {
return service.checkLogin(user.toUserModelRemote())
}
suspend fun getUser(token: String) : UserModelRemote? {
return service.getUser(token)
}
}