@natyapp/meta
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -23,7 +23,9 @@ "use strict"; | ||
var _a; | ||
const connection = await services_1.connectionMutations.SearchOne("phoneNumberId", this.phone_number_id); | ||
const connection = await services_1.connectionMutations.getAll({page:0,size:1000}); | ||
const { isSuccess, isError } = connection; | ||
const thisInstance = isSuccess?.find(item=>item.id === `${this.companyId}/${this.phone_number_id}`) | ||
console.log(`log from api updated`,{thisInstance,companyId:this.companyId,phoneNumberId:this.phone_number_id}) | ||
if (isError) | ||
return; | ||
const token = (_a = isSuccess[0]) === null || _a === void 0 ? void 0 : _a.accessToken; | ||
const token = (_a = thisInstance) === null || _a === void 0 ? void 0 : _a.accessToken; | ||
this.token = token; | ||
@@ -30,0 +32,0 @@ this.apiCall = (0, services_1.newAxiosInstance)({ |
{ | ||
"name": "@natyapp/meta", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -0,0 +0,0 @@ # SDK MICROSSERVIÇO SECRETARIA NATY / META |
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
88351
2220