[ngrams] use saveNodeStoryImmediate, fix ordering with insertNgrams

parent 20e08529
...@@ -349,11 +349,11 @@ commitStatePatch listId (Versioned _p_version p) = do ...@@ -349,11 +349,11 @@ commitStatePatch listId (Versioned _p_version p) = do
pure (newNs', snd newNs) pure (newNs', snd newNs)
-- NOTE State (i.e. `NodeStory` can be saved asynchronously, i.e. with debounce)
saveNodeStory
--saveNodeStoryImmediate
-- Save new ngrams -- Save new ngrams
_ <- insertNgrams (newNgramsFromNgramsStatePatch p) _ <- insertNgrams (newNgramsFromNgramsStatePatch p)
-- NOTE State (i.e. `NodeStory` can be saved asynchronously, i.e. with debounce)
-- saveNodeStory
saveNodeStoryImmediate
pure vq' pure vq'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment