diff options
Diffstat (limited to 'Database.go')
-rw-r--r-- | Database.go | 6 |
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) + } } } } |