Allow null parents from Google Tasks

pull/1043/head
Alex Baker 4 years ago
parent 205295a59a
commit a4c3023c1a

@ -131,7 +131,7 @@ abstract class GoogleTaskDao {
abstract suspend fun updateParents(listId: String)
@Query("UPDATE google_tasks SET gt_remote_parent = :parent, gt_remote_order = :position WHERE gt_remote_id = :id")
abstract suspend fun updatePosition(id: String, parent: String, position: String)
abstract suspend fun updatePosition(id: String, parent: String?, position: String)
@Transaction
open suspend fun reposition(listId: String) {

@ -103,7 +103,7 @@ class GoogleTaskDaoBlocking @Inject constructor(private val dao: GoogleTaskDao)
dao.updateParents(listId)
}
fun updatePosition(id: String, parent: String, position: String) = runBlocking {
fun updatePosition(id: String, parent: String?, position: String) = runBlocking {
dao.updatePosition(id, parent, position)
}

Loading…
Cancel
Save