diff --git a/core/src/commonMain/kotlin/com/powersync/db/internal/InternalDatabaseImpl.kt b/core/src/commonMain/kotlin/com/powersync/db/internal/InternalDatabaseImpl.kt index 43abf0f5..91cad180 100644 --- a/core/src/commonMain/kotlin/com/powersync/db/internal/InternalDatabaseImpl.kt +++ b/core/src/commonMain/kotlin/com/powersync/db/internal/InternalDatabaseImpl.kt @@ -20,7 +20,6 @@ import kotlinx.coroutines.FlowPreview import kotlinx.coroutines.IO import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.debounce -import kotlinx.coroutines.flow.filter import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.launch import kotlinx.coroutines.sync.Mutex diff --git a/demos/supabase-todolist/shared/src/commonMain/kotlin/com/powersync/demos/powersync/Todo.kt b/demos/supabase-todolist/shared/src/commonMain/kotlin/com/powersync/demos/powersync/Todo.kt index 0a0b81fc..06cbf4ff 100644 --- a/demos/supabase-todolist/shared/src/commonMain/kotlin/com/powersync/demos/powersync/Todo.kt +++ b/demos/supabase-todolist/shared/src/commonMain/kotlin/com/powersync/demos/powersync/Todo.kt @@ -4,7 +4,7 @@ import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import co.touchlab.kermit.Logger import com.powersync.PowerSyncDatabase -import com.powersync.db.getLongOptional +import com.powersync.db.getBoolean import com.powersync.db.getString import com.powersync.db.getStringOptional import kotlinx.coroutines.flow.Flow @@ -40,7 +40,7 @@ internal class Todo( description = cursor.getString("description"), createdBy = cursor.getStringOptional("created_by"), completedBy = cursor.getStringOptional("completed_by"), - completed = cursor.getLongOptional("completed") == 1L, + completed = cursor.getBoolean( "completed"), listId = cursor.getString("list_id"), photoId = cursor.getStringOptional("photo_id"), )