Skip to content

Commit 6c453cb

Browse files
committed
Fix typos
1 parent fe1b3f0 commit 6c453cb

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

dist/crm/cleverreach.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CleverreachCRM extends crm_1.CRM {
1818
super(opt);
1919
this.token = null;
2020
this.handleCampaignUpdate = (message) => __awaiter(this, void 0, void 0, function* () {
21-
//we are handling campaign updates toremove them from the queue
21+
//we are handling campaign updates to remove them from the queue
2222
return true;
2323
});
2424
this.fetchCampaign = (campaign) => __awaiter(this, void 0, void 0, function* () {

dist/crm/cleverreach/client.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
1515
exports.upsertContact = exports.getGroups = exports.getContact = exports.getToken = void 0;
1616
const dotenv_1 = __importDefault(require("dotenv"));
1717
dotenv_1.default.config();
18-
const authUrl = process.env.CRM_URL;
1918
const tokenUrl = process.env.CRM_TOKEN_URL;
2019
const ID = process.env.CRM_ID; //letters
2120
const secret = process.env.CRM_SECRET;
2221
const apiUrl = process.env.CRM_URL;
23-
if (!authUrl || !tokenUrl || !ID || !tokenUrl || !apiUrl) {
22+
if (!tokenUrl || !ID || !apiUrl || !secret) {
2423
console.error("No credentials");
2524
process.exit(1);
2625
}
@@ -112,7 +111,7 @@ const upsertContact = (token, postData, listId) => __awaiter(void 0, void 0, voi
112111
return false;
113112
}
114113
catch (error) {
115-
console.error('Post contact errooor:', error.message);
114+
console.error('Post contact error:', error.message);
116115
}
117116
});
118117
exports.upsertContact = upsertContact;

src/crm/cleverreach.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CleverreachCRM extends CRM {
2323
}
2424

2525
handleCampaignUpdate = async (message: CampaignUpdatedEvent): Promise<handleResult | boolean> => {
26-
//we are handling campaign updates toremove them from the queue
26+
//we are handling campaign updates to remove them from the queue
2727
return true;
2828
}
2929

src/crm/cleverreach/client.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import dotenv from 'dotenv';
22
dotenv.config();
33

4-
const authUrl = process.env.CRM_URL;
54
const tokenUrl = process.env.CRM_TOKEN_URL;
65
const ID = process.env.CRM_ID //letters
76
const secret = process.env.CRM_SECRET;
87
const apiUrl = process.env.CRM_URL;
98

10-
if (!authUrl || !tokenUrl || !ID || !tokenUrl || !apiUrl) {
9+
if (!tokenUrl || !ID || !apiUrl || !secret) {
1110
console.error("No credentials");
1211
process.exit(1);
1312
}
@@ -104,7 +103,7 @@ export const upsertContact = async (token: string, postData: any, listId: number
104103
if (response.ok) return true;
105104
return false
106105
} catch (error) {
107-
console.error('Post contact errooor:', error.message);
106+
console.error('Post contact error:', error.message);
108107
}
109108
}
110109

0 commit comments

Comments
 (0)