Skip to content

Commit

Permalink
chore(EMS-4021): add logs to map and save functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ttbarnes committed Jan 28, 2025
1 parent 3ca47f2 commit c9fc953
Show file tree
Hide file tree
Showing 21 changed files with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const business = async (formBody: RequestBody, application: Application, validat
}

if (!saveResponse) {
console.error('No save response received from save.business %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const companyDetails = async (formBody: RequestBody, application: Application, v
}

if (!saveResponse) {
console.error('No save response received from saveCompany.companyDetails %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const companyDifferentTradingAddress = async (formBody: RequestBody, application
}

if (!saveResponse) {
console.error('No save response received from save.companyDifferentTradingAddress %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const companyDifferentTradingAddress = async (application: Application) => {
const saveResponse = await saveAddress.companyDifferentTradingAddress(application, nullifiedData);

if (!saveResponse) {
console.error('No save response received from saveAddress.companyDifferentTradingAddress %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const turnover = async (formBody: RequestBody, application: Application, validat
}

if (!saveResponse) {
console.error('No save response received from save.business %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const exportContractAgentServiceCharge = async (formBody: RequestBody, applicati
}

if (!saveResponse) {
console.error('No save response received from save.exportContractAgentServiceCharge %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const exportContractAgentService = async (formBody: RequestBody, application: Ap
}

if (!saveResponse) {
console.error('No save response received from saveService.exportContractAgentService %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const exportContractAgent = async (formBody: RequestBody, application: Applicati
}

if (!saveResponse) {
console.error('No save response received from saveAgent.exportContractAgent %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const exportContract = async (formBody: RequestBody, application: Application, v
}

if (!saveResponse) {
console.error('No save response received from save.exportContract %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const exportContractAgentServiceAndCharge = async (application: Application) =>
let saveResponse = await saveAgentServiceCharge.exportContractAgentServiceCharge(application, nullified.serviceCharge);

if (!saveResponse) {
console.error('No save response received from saveAgentServiceCharge.exportContractAgentServiceCharge %s', application.id);

return false;
}

Expand All @@ -32,6 +34,8 @@ const exportContractAgentServiceAndCharge = async (application: Application) =>
saveResponse = await saveAgentService.exportContractAgentService(application, nullified.service);

if (!saveResponse) {
console.error('No save response received from saveAgentService.exportContractAgentService %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const privateMarket = async (formBody: RequestBody, application: Application, va
}

if (!saveResponse) {
console.error('No save response received from save.privateMarket %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const broker = async (formBody: RequestBody, application: Application, validatio
}

if (!saveResponse) {
console.error('No save response received from save.broker %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const jointlyInsuredParty = async (formBody: RequestBody, application: Applicati
}

if (!saveResponse) {
console.error('No save response received from save.jointlyInsuredParty %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const lossPayeeFinancialDetailsInternational = async (formBody: RequestBody, app
}

if (!saveResponse) {
console.error('No save response received from save.lossPayeeFinancialDetailsInternational %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const lossPayeeFinancialDetailsUk = async (formBody: RequestBody, application: A
}

if (!saveResponse) {
console.error('No save response received from save.lossPayeeFinancialDetailsUk %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const lossPayee = async (formBody: RequestBody, application: Application, valida
}

if (!saveResponse) {
console.error('No save response received from saveLossPayee.nominatedLossPayee %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const policyContact = async (formBody: RequestBody, application: Application, va
}

if (!saveResponse) {
console.error('No save response received from save.policyContact %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const policy = async (formBody: RequestBody, application: Application, validatio
}

if (!saveResponse) {
console.error('No save response received from save.policy %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const buyerRelationship = async (formBody: RequestBody, application: Application
}

if (!saveResponse) {
console.error('No save response received from save.buyerRelationship %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const buyerTradingHistory = async (formBody: RequestBody, application: Applicati
}

if (!saveResponse) {
console.error('No save response received from save.buyerTradingHistory %s', application.id);

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const yourBuyer = async (formBody: RequestBody, application: Application, valida
}

if (!saveResponse) {
console.error('No save response received from save.buyer %s', application.id);

return false;
}

Expand Down

0 comments on commit c9fc953

Please sign in to comment.