Commit 38be4669 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[nodeStory] fix delete query

parent 275ea092
Pipeline #3173 passed with stage
in 92 minutes and 8 seconds
......@@ -466,8 +466,7 @@ deleteArchiveList c nodeId a = do
pure ()
where
query :: PGS.Query
query = [sql| WITH (SELECT id FROM ngrams WHERE terms = ?) AS ngrams
DELETE FROM node_stories
query = [sql| DELETE FROM node_stories
WHERE node_id = ? AND ngrams_type_id = ? AND ngrams_id IN (SELECT id FROM ngrams WHERE terms = ?) |]
updateArchiveList :: PGS.Connection -> NodeId -> ArchiveList -> IO ()
......
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