diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-23 10:32:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-23 10:32:30 -0500 |
commit | 217cdf447a995fd8f2700b14ba790360ccaeabf6 (patch) | |
tree | ca0b01c4cd869fbadd1d5a831b5775ca9dc066dc /store/sql_channel_store_test.go | |
parent | ffd6ccde2ed4b1d374d0835c5638a189df60a679 (diff) | |
download | chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.tar.gz chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.tar.bz2 chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.zip |
PLT-5073 Improve performance of /channels/view endpoint (#4881)
* Improve performance of /channels/view endpoint
* Fix store unit test
Diffstat (limited to 'store/sql_channel_store_test.go')
-rw-r--r-- | store/sql_channel_store_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sql_channel_store_test.go b/store/sql_channel_store_test.go index b2a644c15..64e44cbb3 100644 --- a/store/sql_channel_store_test.go +++ b/store/sql_channel_store_test.go @@ -808,12 +808,12 @@ func TestChannelStoreUpdateLastViewedAt(t *testing.T) { m1.NotifyProps = model.GetDefaultChannelNotifyProps() Must(store.Channel().SaveMember(&m1)) - err := (<-store.Channel().UpdateLastViewedAt(m1.ChannelId, m1.UserId)).Err + err := (<-store.Channel().UpdateLastViewedAt([]string{m1.ChannelId}, m1.UserId)).Err if err != nil { t.Fatal("failed to update", err) } - err = (<-store.Channel().UpdateLastViewedAt(m1.ChannelId, "missing id")).Err + err = (<-store.Channel().UpdateLastViewedAt([]string{m1.ChannelId}, "missing id")).Err if err != nil { t.Fatal("failed to update") } |