diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/Thermoprint/Server/API.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/Thermoprint/Server/API.hs b/server/src/Thermoprint/Server/API.hs index 44b8402..2adca3c 100644 --- a/server/src/Thermoprint/Server/API.hs +++ b/server/src/Thermoprint/Server/API.hs | |||
@@ -148,7 +148,7 @@ abortJob jobId = do | |||
148 | current@(Queue pending _ _) <- readTVar $ queue p | 148 | current@(Queue pending _ _) <- readTVar $ queue p |
149 | let filtered = Seq.filter (/= castId jobId) pending | 149 | let filtered = Seq.filter (/= castId jobId) pending |
150 | writeTVar (queue p) $ current { pending = filtered } | 150 | writeTVar (queue p) $ current { pending = filtered } |
151 | return $ ((==) `on` length) pending filtered | 151 | return . not $ ((==) `on` length) pending filtered |
152 | when (not found) $ left err404 | 152 | when (not found) $ left err404 |
153 | 153 | ||
154 | listDrafts :: Handler (Map API.DraftId (Maybe DraftTitle)) | 154 | listDrafts :: Handler (Map API.DraftId (Maybe DraftTitle)) |