mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixing emoji bug (#5438)
This commit is contained in:
@@ -79,7 +79,7 @@ func (es SqlEmojiStore) Get(id string, allowFromCache bool) StoreChannel {
|
||||
if metrics != nil {
|
||||
metrics.IncrementMemCacheHitCounter("Emoji")
|
||||
}
|
||||
result.Data = cacheItem.(map[string]*model.Emoji)
|
||||
result.Data = cacheItem.(*model.Emoji)
|
||||
storeChannel <- result
|
||||
close(storeChannel)
|
||||
return
|
||||
|
||||
@@ -84,6 +84,12 @@ func TestEmojiGet(t *testing.T) {
|
||||
t.Fatalf("failed to get emoji with id %v: %v", emoji.Id, result.Err)
|
||||
}
|
||||
}
|
||||
|
||||
for _, emoji := range emojis {
|
||||
if result := <-store.Emoji().Get(emoji.Id, true); result.Err != nil {
|
||||
t.Fatalf("failed to get emoji with id %v: %v", emoji.Id, result.Err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestEmojiGetByName(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user