1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: concurrent access to language mappings (resolve #83)

This commit is contained in:
Ferdinand Mütsch
2021-01-07 10:52:49 +01:00
parent 262bee9022
commit 98b62b33c8
8 changed files with 245 additions and 222 deletions

View File

@ -59,7 +59,7 @@ func (h *SummaryHandler) GetIndex(w http.ResponseWriter, r *http.Request) {
vm := models.SummaryViewModel{
Summary: summary,
LanguageColors: utils.FilterLanguageColors(h.config.App.LanguageColors, summary),
LanguageColors: utils.FilterLanguageColors(h.config.App.GetLanguageColors(), summary),
ApiKey: user.ApiKey,
}