Getting the emoji by id using the cache (#17078)

Этот коммит содержится в:
Jesús Espino
2021-03-05 18:13:38 +01:00
коммит произвёл GitHub
родитель 5203fc8608
Коммит fca78d693a

Просмотреть файл

@@ -186,7 +186,7 @@ func (a *App) GetEmoji(emojiId string) (*model.Emoji, *model.AppError) {
return nil, model.NewAppError("GetEmoji", "api.emoji.storage.app_error", nil, "", http.StatusNotImplemented)
}
emoji, err := a.Srv().Store.Emoji().Get(context.Background(), emojiId, false)
emoji, err := a.Srv().Store.Emoji().Get(context.Background(), emojiId, true)
if err != nil {
var nfErr *store.ErrNotFound
switch {