Fortellis certification updates.
This commit is contained in:
@@ -249,14 +249,14 @@ async function MakeFortellisCall({
|
||||
socket?.recordid,
|
||||
{
|
||||
wsmessage: "",//message,
|
||||
curl: error.config.curl.curlCommand,
|
||||
reqid: error.request.headers["Request-Id"] || null,
|
||||
subscriptionId: error.request.headers["Subscription-Id"] || null,
|
||||
curl: error?.config.curlCommand,
|
||||
reqid: error.config?.headers["Request-Id"] || null,
|
||||
subscriptionId: error.config?.headers["Subscription-Id"] || null,
|
||||
},
|
||||
true
|
||||
);
|
||||
|
||||
throw new FortellisApiError(`Fortellis API call failed for ${apiName}: ${error.message}`, errorDetails);
|
||||
throw new FortellisApiError(`Fortellis API call failed for ${apiName}: ${error.message} | ${errorDetails?.errorData?.message}`, errorDetails);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ const FortellisActions = {
|
||||
GetMakeModel: {
|
||||
url: isProduction
|
||||
? "https://api.fortellis.io/cdk/drive/makemodel/v2/bulk"
|
||||
: "https://api.fortellis.io/cdk-test/drive/makemodel/v2",
|
||||
: "https://api.fortellis.io/cdk-test/drive/makemodel/v2/bulk",
|
||||
type: "get",
|
||||
apiName: "CDK Drive Get Make Model Lite"
|
||||
},
|
||||
|
||||
@@ -968,9 +968,9 @@ async function InsertServiceVehicleHistory({ socket, redisHelpers, JobData }) {
|
||||
openTime: moment(JobData.actual_in).tz(JobData.bodyshop.timezone).format("HH:mm:ss"),
|
||||
closeDate: moment(JobData.invoice_date).tz(JobData.bodyshop.timezone).format("YYYY-MM-DD"),
|
||||
closeTime: moment(JobData.invoice_date).tz(JobData.bodyshop.timezone).format("HH:mm:ss"),
|
||||
comments: txEnvelope.story, // has to be between 0 and 40.
|
||||
comments: txEnvelope.story?.slice(0, 40), // has to be between 0 and 40.
|
||||
cashierId: JobData.bodyshop.cdk_configuration.cashierid,
|
||||
referenceNumber: JobData.bodyshop.cdk_configuration.cashierid
|
||||
referenceNumber: JobData.ro_number.match(/\d+/g)[0]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user