Update API for debugging.

This commit is contained in:
Patrick Fic
2024-03-14 07:41:03 -07:00
parent a74b340d23
commit 6f09064f05

View File

@@ -75,6 +75,7 @@ exports.default = async function ReloadCdkMakes(req, res) {
);
res.sendStatus(200);
} catch (error) {
console.log("Error inserting CDK Vehicles.", error)
logger.log(
"cdk-replace-makes-models-error",
"ERROR",
@@ -82,7 +83,7 @@ exports.default = async function ReloadCdkMakes(req, res) {
null,
{
cdk_dealerid,
error: JSON.stringify(error),
error: error.message,
}
);
res.status(500).json(error.message);