diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_post_store.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go index a7d47f4a9..3a57f32e8 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -129,11 +129,13 @@ func (s SqlPostStore) Update(newPost *model.Post, oldPost *model.Post) StoreChan result := StoreResult{} newPost.UpdateAt = model.GetMillis() + newPost.PreCommit() oldPost.DeleteAt = newPost.UpdateAt oldPost.UpdateAt = newPost.UpdateAt oldPost.OriginalId = oldPost.Id oldPost.Id = model.NewId() + oldPost.PreCommit() if result.Err = newPost.IsValid(); result.Err != nil { storeChannel <- result |