From 9551c7c13f53160cd0efcf5228d815ca63fa492f Mon Sep 17 00:00:00 2001 From: inseo <i32kim@uwaterloo.ca> Date: Thu, 6 Apr 2023 11:48:59 -0400 Subject: [PATCH] The localfetch error has been fixed: now it reflects changes in local db. --- .idea/.name | 2 +- .../src/main/kotlin/notes/multi/utilities/DatabaseOperations.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/.name b/.idea/.name index 08e57ae..a1c4d00 100644 --- a/.idea/.name +++ b/.idea/.name @@ -1 +1 @@ -notes-multi \ No newline at end of file +notes-app \ No newline at end of file diff --git a/utilities/src/main/kotlin/notes/multi/utilities/DatabaseOperations.kt b/utilities/src/main/kotlin/notes/multi/utilities/DatabaseOperations.kt index ba8461f..fae37b0 100644 --- a/utilities/src/main/kotlin/notes/multi/utilities/DatabaseOperations.kt +++ b/utilities/src/main/kotlin/notes/multi/utilities/DatabaseOperations.kt @@ -199,7 +199,7 @@ class DatabaseOperations() { fun localfetch(note: Note) { val ret = HttpOperations.get(note.id) if (ret.id != "NOT_FOUND") { - addUpdateNote(note) + addUpdateNote(ret) } } -- GitLab