fix: wrong type in payload

This commit is contained in:
Methapon2001 2024-12-17 17:59:06 +07:00
parent 7f185a616c
commit 2519ae60e9

View file

@ -208,7 +208,7 @@ const flowAccountAPI = {
["Authorization"]: `Bearer ${token}`,
},
body: JSON.stringify({
documentId: recordId,
documentId: +recordId,
culture: "th",
}),
});
@ -325,7 +325,6 @@ const flowAccount = {
getInvoiceDocument: async (recordId: string) => {
const ret = await flowAccountAPI.getInvoiceDocument(recordId);
console.log(ret);
if (ret && ret.ok) {
return ret.body;
}