diff options
-rw-r--r-- | server/src/Thermoprint/Server.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/Thermoprint/Server.hs b/server/src/Thermoprint/Server.hs index 279991d..2dcb8e9 100644 --- a/server/src/Thermoprint/Server.hs +++ b/server/src/Thermoprint/Server.hs | |||
@@ -72,7 +72,7 @@ withPrinters cfg pss = (\map -> cfg { printers = map }) <$> foldlM (\map spec -> | |||
72 | where | 72 | where |
73 | nextKey map | 73 | nextKey map |
74 | | Map.null map = 0 | 74 | | Map.null map = 0 |
75 | | otherwise = succ . fst $ Map.findMin map | 75 | | otherwise = succ . fst $ Map.findMax map |
76 | 76 | ||
77 | thermoprintServer :: ( MonadLoggerIO m | 77 | thermoprintServer :: ( MonadLoggerIO m |
78 | , MonadReader ConnectionPool m | 78 | , MonadReader ConnectionPool m |