@modulbank/sendamo
Advanced tools
Comparing version 0.0.26-beta-sm-8778-integration-with-cityes-add-3bbd56b4 to 0.0.26-beta-sm-8778-integration-with-cityes-add-9d99acaa
@@ -78,5 +78,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
function sendPostBack() { | ||
const orderId = getCookie("order_id"); | ||
const clickId = getCookie("click_id"); | ||
function sendPostBack(clickId, orderId) { | ||
return new Promise((resolve, reject) => { | ||
@@ -115,2 +113,7 @@ // @ts-ignore | ||
if (response.status === 200) { | ||
const orderId = getCookie("order_id"); | ||
const clickId = getCookie("click_id"); | ||
if (clickId && orderId) { | ||
sendPostBack(clickId, orderId); | ||
} | ||
resolve(response); | ||
@@ -117,0 +120,0 @@ } |
{ | ||
"name": "@modulbank/sendamo", | ||
"version": "0.0.26-beta-sm-8778-integration-with-cityes-add-3bbd56b4", | ||
"version": "0.0.26-beta-sm-8778-integration-with-cityes-add-9d99acaa", | ||
"description": "send to amocrm method", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8036
176