fix(printers): missing logs for errors
This commit is contained in:
@@ -12,9 +12,14 @@ export const updatePrinters = async () => {
|
||||
});
|
||||
const currentTime = new Date(Date.now());
|
||||
|
||||
const { data: prodPrinters, error: prodError } = await tryCatch(
|
||||
const { data: prodPrinters, error: prodError } = (await tryCatch(
|
||||
prodEndpoint("GET", "/public/v1.0/Administration/Printers"),
|
||||
);
|
||||
)) as any;
|
||||
|
||||
if (!prodPrinters.success) {
|
||||
log.error({ error: prodPrinters }, "There was an error with the endpoint");
|
||||
return;
|
||||
}
|
||||
|
||||
if (prodError || prodPrinters?.data.length > 10000) {
|
||||
//console.log(prodError);
|
||||
|
||||
Reference in New Issue
Block a user