commented api request

This commit is contained in:
Vladimir Khvan 2023-03-14 16:46:49 +05:00
parent fe314f1af6
commit d94501b221

View File

@ -64,10 +64,9 @@ class WebhooksStore {
};
editWebhook = async (prevWebhook, webhookInfo) => {
await updateWebhook(webhookInfo.title, webhookInfo.url, webhookInfo.secretKey);
console.log(prevWebhook, webhookInfo);
// await updateWebhook(webhookInfo.title, webhookInfo.url, webhookInfo.secretKey);
this.webhooks = this.webhooks.map((webhook) =>
webhook.id === prevWebhook.id ? webhookInfo : webhook,
webhook.id === prevWebhook.id ? { ...prevWebhook, ...webhookInfo } : webhook,
);
};