Updates the downloadLogs method to now throw an error if downloading from a blue maestro device fails.
Re-orders the calculation of numberOfLogsToSave to be prior to downloading logs. If there are no numberOfLogsToSave, the method returns and no attempt to download is made.
Related issue https://github.com/openmsupply/msupply-cold-chain/issues/229
PR changes This PR covers the following changes:
downloadLogs
method to now throw an error if downloading from a blue maestro device fails.numberOfLogsToSave
to be prior to downloading logs. If there are nonumberOfLogsToSave
, the method returns and no attempt to download is made.