Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sync polaris loan 's schedule (#5064)
- Loading branch information
1 parent
b5c497c
commit caf5036
Showing
3 changed files
with
107 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
packages/plugin-syncpolaris-api/src/utils/loan/getLoanSchedule.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { fetchPolaris } from '../utils'; | ||
|
||
export const getLoanDetail = async (subdomain, params) => { | ||
const loanDetail = await fetchPolaris({ | ||
export const getLoanSchedule = async (subdomain, params) => { | ||
|
||
return await fetchPolaris({ | ||
subdomain, | ||
op: '13610200', | ||
data: [params.number, 0], | ||
op: '13610203', | ||
data: [params.number], | ||
}).then((response) => JSON.parse(response)); | ||
|
||
return loanDetail; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters