app / com.ocean.ishareeconomy_android.repositories / UserRepository / removeLendObject

removeLendObject

suspend fun removeLendObject(userId: String, objectId: String, auth: String): Unit

Method that makes a network call to DELETE an existing LendingObject from the user's lending list and on success stores remove it from the DB

Parameters

userId - : String the logged in user id

objectId - : String the id of the LendingObject that is to be deleted

auth - : String the logged in user's auth token

Return
Unit