From 83d53ea98cf5486f89bd4280b6b5ef835da4fd22 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Tue, 11 Jul 2017 09:09:15 +0100 Subject: PLT-6475: Elasticsearch Indexing Worker. (#6879) --- model/post.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'model/post.go') diff --git a/model/post.go b/model/post.go index f5a398656..55e6f591d 100644 --- a/model/post.go +++ b/model/post.go @@ -62,6 +62,12 @@ type PostPatch struct { HasReactions *bool `json:"has_reactions"` } +type PostForIndexing struct { + Post + TeamId string `json:"team_id"` + ParentCreateAt *int64 `json:"parent_create_at"` +} + func (o *Post) ToJson() string { b, err := json.Marshal(o) if err != nil { -- cgit v1.2.3-1-g7c22