Skip to content

Commit

Permalink
api: prevent error when submitting empty task data
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanCacqueray committed Jan 3, 2024
1 parent 23c4def commit 9a60ca4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Monocle/Backend/Index.hs
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ orphanTaskDataDocToBHDoc TaskDataDoc {..} =
)

taskDataAdd :: MonoQuery :> es => IndexEffects es => Text -> [SearchPB.TaskData] -> Eff es ()
taskDataAdd _ [] = pure ()
taskDataAdd crawlerName tds = do
-- extract change URLs from input TDs
let urls = from . SearchPB.taskDataChangeUrl <$> tds
Expand Down

0 comments on commit 9a60ca4

Please sign in to comment.