Tobi
Tobi
Explore posts from servers
AAlokai
Created by Tobi on 6/20/2023 in #🙋|general-help
[Shopware PWA] apiInstance.invoke.patch return's 500 error
so invoke.patch('url', {data})
7 replies
AAlokai
Created by Tobi on 6/20/2023 in #🙋|general-help
[Shopware PWA] apiInstance.invoke.patch return's 500 error
Okay, found the issue, the apiInstance.invoke.patch should based on the basic invoke functions, its needed to use them as Axios self
7 replies
AAlokai
Created by Tobi on 6/20/2023 in #🙋|general-help
[Shopware PWA] apiInstance.invoke.patch return's 500 error
This is the Code of all - Normaly this should do an patch request, but i only get the Uncaught (in promise)
7 replies
AAlokai
Created by Tobi on 6/20/2023 in #🙋|general-help
[Shopware PWA] apiInstance.invoke.patch return's 500 error
const {apiInstance} = getApplicationContext({
contextName: "CustomizeProductDetail",
});


const updateCustomerProduct = async (field) => {

await apiInstance.invoke.patch({
address: "/some/patch/endpoint",
payload: {
some: "payload",
},
})

this[field] = this.toUpdate[field];

}
const {apiInstance} = getApplicationContext({
contextName: "CustomizeProductDetail",
});


const updateCustomerProduct = async (field) => {

await apiInstance.invoke.patch({
address: "/some/patch/endpoint",
payload: {
some: "payload",
},
})

this[field] = this.toUpdate[field];

}
7 replies
AAlokai
Created by Tobi on 6/20/2023 in #🙋|general-help
[Shopware PWA] apiInstance.invoke.patch return's 500 error
Sure
7 replies