Problem
Coming from #37391 (review), we key personalDetails by accountID, but policy.approver and poliyc.reimburserEmail sends the approver email data back to Onyx, which leads to an inefficient lookup for personal details.
Why is this important
Affects performance
Solution
Send the approverAccountID and reimburserAccountID to Onyx so we can use that to lookup personal details instead of the approver email. Once that's done, we should remove getPersonalDetailByEmail
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01781c07caff758274
- Upwork Job ID: 1775199977020665856
- Last Price Increase: 2024-04-02
Problem
Coming from #37391 (review), we key personalDetails by accountID, but policy.approver and poliyc.reimburserEmail sends the approver email data back to Onyx, which leads to an inefficient lookup for personal details.
Why is this important
Affects performance
Solution
Send the approverAccountID and reimburserAccountID to Onyx so we can use that to lookup personal details instead of the approver email. Once that's done, we should remove getPersonalDetailByEmail
Upwork Automation - Do Not Edit