File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
core/src/commonMain/kotlin/com/powersync/db/internal
demos/supabase-todolist/shared/src/commonMain/kotlin/com/powersync/demos/powersync Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import kotlinx.coroutines.FlowPreview
2020import kotlinx.coroutines.IO
2121import kotlinx.coroutines.flow.Flow
2222import kotlinx.coroutines.flow.debounce
23- import kotlinx.coroutines.flow.filter
2423import kotlinx.coroutines.flow.onEach
2524import kotlinx.coroutines.launch
2625import kotlinx.coroutines.sync.Mutex
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import androidx.lifecycle.ViewModel
44import androidx.lifecycle.viewModelScope
55import co.touchlab.kermit.Logger
66import com.powersync.PowerSyncDatabase
7- import com.powersync.db.getLongOptional
7+ import com.powersync.db.getBoolean
88import com.powersync.db.getString
99import com.powersync.db.getStringOptional
1010import kotlinx.coroutines.flow.Flow
@@ -40,7 +40,7 @@ internal class Todo(
4040 description = cursor.getString(" description" ),
4141 createdBy = cursor.getStringOptional(" created_by" ),
4242 completedBy = cursor.getStringOptional(" completed_by" ),
43- completed = cursor.getLongOptional( " completed" ) == 1L ,
43+ completed = cursor.getBoolean( " completed" ),
4444 listId = cursor.getString(" list_id" ),
4545 photoId = cursor.getStringOptional(" photo_id" ),
4646 )
You can’t perform that action at this time.
0 commit comments