Getting the emoji by id using the cache (#17078)
Этот коммит содержится в:
коммит произвёл
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)
|
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 {
|
if err != nil {
|
||||||
var nfErr *store.ErrNotFound
|
var nfErr *store.ErrNotFound
|
||||||
switch {
|
switch {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user