diff options
Diffstat (limited to 'server/src')
-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 7868f2c..cd4326e 100644 --- a/server/src/Thermoprint/Server/API.hs +++ b/server/src/Thermoprint/Server/API.hs | |||
@@ -110,7 +110,7 @@ lookupPrinter pId = asks printers >>= maybePrinter' pId | |||
110 | maybePrinter' Nothing printerMap | 110 | maybePrinter' Nothing printerMap |
111 | | Map.null printerMap = left $ err501 { errBody = "No printers available" } | 111 | | Map.null printerMap = left $ err501 { errBody = "No printers available" } |
112 | | otherwise = return $ Map.findMin printerMap | 112 | | otherwise = return $ Map.findMin printerMap |
113 | maybePrinter (Just pId) printerMap | 113 | maybePrinter' (Just pId) printerMap |
114 | | Just printer <- Map.lookup pId printerMap = return (pId, printer) | 114 | | Just printer <- Map.lookup pId printerMap = return (pId, printer) |
115 | | otherwise = left $ err404 { errBody = "No such printer" } | 115 | | otherwise = left $ err404 { errBody = "No such printer" } |
116 | 116 | ||