Skip to content

Commit

Permalink
price changed to string in mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
GitVivekHub committed Oct 15, 2024
1 parent d7628c0 commit fb61530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class AppService {
currency: item?.currency || "INR",
createdAt: item?.createdAt,
updatedAt: item?.updatedAt,
amount: item?.price || "1000", // Assuming 'price' represents the amount
amount: item?.price?.toString() || "1000", // Assuming 'price' represents the amount
applicationDeadline: item?.application_deadline,
extendedDeadline: item?.extended_deadline || null,
providerId: item?.provider?.id || null,
Expand Down
3 changes: 1 addition & 2 deletions src/views/submit.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
</head>
<body>
<form
action="https://dev-uba-bpp.tekdinext.com/api
/application-init/<%= item_id %>/<%= transaction_id %>"
action="http://localhost:4000/application-init/<%= item_id %>/<%= transaction_id %>"
method="post"
>
<div class="container">
Expand Down

0 comments on commit fb61530

Please sign in to comment.