IO-256 Remove credentials with Axios calls for QBO.

This commit is contained in:
Patrick Fic
2021-10-22 10:00:23 -07:00
parent 434ed46b5a
commit 9d4a59ca16
7 changed files with 21 additions and 54 deletions

View File

@@ -15,7 +15,6 @@ import { logImEXEvent } from "../../firebase/firebase.utils";
import _ from "lodash";
import { INSERT_EXPORT_LOG } from "../../graphql/accounting.queries";
const mapStateToProps = createStructuredSelector({
bodyshop: selectBodyshop,
currentUser: selectCurrentUser,
@@ -34,7 +33,6 @@ export function PayableExportAll({
const [loading, setLoading] = useState(false);
const [insertExportLog] = useMutation(INSERT_EXPORT_LOG);
const handleQbxml = async () => {
logImEXEvent("accounting_payables_export_all");
let PartnerResponse;
@@ -42,13 +40,9 @@ export function PayableExportAll({
setLoading(true);
if (!!loadingCallback) loadingCallback(true);
if (bodyshop.accountingconfig && bodyshop.accountingconfig.qbo) {
PartnerResponse = await axios.post(
`/qbo/receivables`,
{
bills: billids,
},
{ withCredentials: true }
);
PartnerResponse = await axios.post(`/qbo/receivables`, {
bills: billids,
});
} else {
let QbXmlResponse;
try {