Skip to content

Commit

Permalink
feat(earnings model): initialize funder field based on org_name inste…
Browse files Browse the repository at this point in the history
…ad of name field
  • Loading branch information
Mloweedgar committed Feb 15, 2022
1 parent c2b9e74 commit 89d19b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/models/Earnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Earning = async ({
worker_id,
grower: `${growerResponse.data.stakeholders[0]?.first_name} ${growerResponse.data.stakeholders[0]?.last_name}`,
funder_id,
funder: funderResponse.data.stakeholders[0]?.name,
funder: funderResponse.data.stakeholders[0]?.org_name,
phone: growerResponse.data.stakeholders[0]?.phone,
amount,
currency,
Expand Down

0 comments on commit 89d19b5

Please sign in to comment.