summaryrefslogtreecommitdiffstats
path: root/api/export.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-20 10:34:31 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-20 10:34:31 -0600
commitaac8d121a00922f007b9c67d890ea9dbcfbe4b8f (patch)
tree6bb1b242653aef8706254cbf144637e065cd49a4 /api/export.go
parent3ac5ecf0e98823cab22c77d3a56393cbe6bbc19a (diff)
downloadchat-aac8d121a00922f007b9c67d890ea9dbcfbe4b8f.tar.gz
chat-aac8d121a00922f007b9c67d890ea9dbcfbe4b8f.tar.bz2
chat-aac8d121a00922f007b9c67d890ea9dbcfbe4b8f.zip
PLT-7 adding loc db calls for posts table
Diffstat (limited to 'api/export.go')
-rw-r--r--api/export.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/export.go b/api/export.go
index 2030b0723..b5da8937e 100644
--- a/api/export.go
+++ b/api/export.go
@@ -192,7 +192,7 @@ func ExportChannels(T goi18n.TranslateFunc, writer ExportWriter, options *Export
}
for _, channel := range channels {
- if err := ExportPosts(writer, options, channel.Id); err != nil {
+ if err := ExportPosts(T, writer, options, channel.Id); err != nil {
return err
}
}
@@ -200,10 +200,10 @@ func ExportChannels(T goi18n.TranslateFunc, writer ExportWriter, options *Export
return nil
}
-func ExportPosts(writer ExportWriter, options *ExportOptions, channelId string) *model.AppError {
+func ExportPosts(T goi18n.TranslateFunc, writer ExportWriter, options *ExportOptions, channelId string) *model.AppError {
// Get the posts
var posts []*model.Post
- if result := <-Srv.Store.Post().GetForExport(channelId); result.Err != nil {
+ if result := <-Srv.Store.Post().GetForExport(T, channelId); result.Err != nil {
return result.Err
} else {
posts = result.Data.([]*model.Post)