aboutsummaryrefslogtreecommitdiff
path: root/Database.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-24 21:34:37 -0800
committerFChannel <=>2021-01-24 21:34:37 -0800
commita706133ba7c15f366dba66d10bf8f556147e40f1 (patch)
treeddf348539fd49f1fdd2362077959b7ab2528dd7b /Database.go
parentb62c79a0cff349ce475d67ed23bdd5d2e0470f76 (diff)
removed cachereplies to consolidate into replies db
Diffstat (limited to 'Database.go')
-rw-r--r--Database.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/Database.go b/Database.go
index ea1b031..cce0fcd 100644
--- a/Database.go
+++ b/Database.go
@@ -235,7 +235,11 @@ func writeObjectReplyToDB(db *sql.DB, obj ObjectBase) {
}
if update {
- WriteObjectUpdatesToDB(db, e)
+ if IsObjectLocal(db, e.Id) {
+ WriteObjectUpdatesToDB(db, e)
+ } else {
+ WriteObjectUpdatesToCache(db, e)
+ }
}
}
}