Skip to content

Commit

Permalink
Fix task bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Sep 25, 2024
1 parent de05238 commit 70f68fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/io/github/jan/kex/data/remote/TaskApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ internal class TaskApiImpl(

override suspend fun createTask(subjectId: Long, task: String, dueDate: Instant): Task {
val subject = TaskData(task, dueDate, goTrue.currentUserOrNull()!!.id, subjectId)
return subjects.insert(subject).decodeSingle()
return subjects.insert(subject) { select() }.decodeSingle()
}

override suspend fun deleteTask(subjectId: Long) {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ kotlin.experimental.tryK2=true
android.lint.useK2Uast=true

# App settings
app.versionName=0.2.0
app.versionCode=13
app.versionName=0.2.1
app.versionCode=14

0 comments on commit 70f68fc

Please sign in to comment.