Logger updates.

This commit is contained in:
Patrick Fic
2022-09-15 14:04:25 -07:00
parent ad5b009824
commit fd3a815dfa
3 changed files with 23 additions and 3 deletions

View File

@@ -14,7 +14,9 @@ import TrucksList from "./trucks.json";
import CargoVanList from "./cargovans.json";
import PassengerVanList from "./passengervans.json";
import SuvList from "./suvs.json";
import ipcTypes from "../ipc.types";
const { logger } = window;
const { ipcRenderer } = window;
export function CalculateVehicleAge(job) {
const parsedYr = parseInt(job.v_model_yr);
@@ -31,8 +33,12 @@ export function CalculateVehicleAge(job) {
export async function UpsertEstimate(job) {
const shopId = store.getState().user.bodyshop.id;
logger.info("Beginning Upserting job from Renderer.");
//logger.info("Beginning Upserting job from Renderer.");
console.log("WINDOW IPCS",ipcRenderer)
ipcRenderer.send(
ipcTypes.default.app.toMain.log.info,
"Beginning Upserting job from Renderer."
);
const existingJobs = await client.query({
query: QUERY_JOB_BY_CLM_NO,
variables: { clm_no: job.clm_no },