fix: wrong type in payload
This commit is contained in:
parent
7f185a616c
commit
2519ae60e9
1 changed files with 1 additions and 2 deletions
|
|
@ -208,7 +208,7 @@ const flowAccountAPI = {
|
||||||
["Authorization"]: `Bearer ${token}`,
|
["Authorization"]: `Bearer ${token}`,
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
documentId: recordId,
|
documentId: +recordId,
|
||||||
culture: "th",
|
culture: "th",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
@ -325,7 +325,6 @@ const flowAccount = {
|
||||||
|
|
||||||
getInvoiceDocument: async (recordId: string) => {
|
getInvoiceDocument: async (recordId: string) => {
|
||||||
const ret = await flowAccountAPI.getInvoiceDocument(recordId);
|
const ret = await flowAccountAPI.getInvoiceDocument(recordId);
|
||||||
console.log(ret);
|
|
||||||
if (ret && ret.ok) {
|
if (ret && ret.ok) {
|
||||||
return ret.body;
|
return ret.body;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue