chore(apc): remove outdate workaround
This commit is contained in:
parent
a25acfac05
commit
8d64ca9842
@ -452,14 +452,9 @@ postPrintAckDirectR = do
|
|||||||
Right (fmap Text.strip -> reqIds) -> do -- inside conduit?
|
Right (fmap Text.strip -> reqIds) -> do -- inside conduit?
|
||||||
let nrReq = length reqIds
|
let nrReq = length reqIds
|
||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
nrApcIds <- updateWhereCount
|
nrOk <- updateWhereCount
|
||||||
[PrintJobAcknowledged ==. Nothing, PrintJobApcIdent <-. reqIds]
|
[PrintJobAcknowledged ==. Nothing, PrintJobApcIdent <-. reqIds]
|
||||||
[PrintJobAcknowledged =. Just now]
|
[PrintJobAcknowledged =. Just now]
|
||||||
nrOk <- if nrApcIds <= 0 && nrReq > 0
|
|
||||||
then updateWhereCount -- for downwards compatibility only
|
|
||||||
[PrintJobAcknowledged ==. Nothing, PrintJobLmsUser <-. (Just . LmsIdent . dropPrefixText "lms-" <$> reqIds)]
|
|
||||||
[PrintJobAcknowledged =. Just now]
|
|
||||||
else return nrApcIds
|
|
||||||
if | nrReq <= 0 -> do
|
if | nrReq <= 0 -> do
|
||||||
let msg = "Error: No print job was acknowledged as printed, but " <> tshow nrReq <> " were requested to be, for file " <> fhead
|
let msg = "Error: No print job was acknowledged as printed, but " <> tshow nrReq <> " were requested to be, for file " <> fhead
|
||||||
$logErrorS "APC" msg
|
$logErrorS "APC" msg
|
||||||
|
|||||||
Reference in New Issue
Block a user