Skip to content

Commit

Permalink
comfirm update payload formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
GitVivekHub committed Oct 16, 2024
1 parent ea1fcd3 commit a995cd4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,6 @@ export class AppService {
current_school_address:
customerData?.data?.data?.[0]?.current_school_address || "NA",
application_date: customerData?.data?.data?.[0]?.application_date,
email: customerData?.data?.data?.[0]?.email || "NA",
phone: customerData?.data?.data?.[0]?.phone || "NA",
gender: customerData?.data?.data?.[0]?.gender || "NA",
order_id: order_id || 0,
Expand All @@ -979,6 +978,13 @@ export class AppService {

console.log("updateCustomerPayload--->>", updateCustomerPayload);

console.log(
"urlll--->>>",

`${this.strapi_base_url}/api/applications/${document_id}`,
updateCustomerPayload
);

// Axios POST call
const orderDetails = await axios.put(
`${this.strapi_base_url}/api/applications/${document_id}`,
Expand Down

0 comments on commit a995cd4

Please sign in to comment.