Add upsert of language component
This commit is contained in:
parent
fb82923949
commit
de3293f6ec
1 changed files with 6 additions and 1 deletions
|
@ -82,5 +82,10 @@ loadLangComponent :: LangComponent -> Action IO ()
|
|||
loadLangComponent lc = do
|
||||
let langComp = val lc
|
||||
case langComp of
|
||||
Doc x -> insert_ "langcomps" x
|
||||
Doc x ->
|
||||
upsert
|
||||
(select
|
||||
["language" =: lc_lang lc, "component" =: lc_component lc]
|
||||
"langcomps")
|
||||
x
|
||||
_ -> error "Couldn't parse language JSON"
|
||||
|
|
Loading…
Reference in a new issue