Skip to content

Commit eb5f921

Browse files
committed
Update CHANGELOG
1 parent 9452a23 commit eb5f921

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
## Version History
1212

13+
### v3.3.0
14+
15+
- :bug: Add Base64 Message Parsing
16+
1317
### v3.2.0
1418

1519
- :arrow_up: Update NodeJS Version

task.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default class Task extends ETL {
8787
const errs: Error[] = [];
8888
for (let i = 0; i < filteredAgencies.length; i++) {
8989
const agency = filteredAgencies[i];
90-
console.error(`ok - getting alerts from ${agency}`);
90+
console.log(`ok - getting alerts from ${agency}`);
9191

9292
try {
9393
const agencyForm = new FormData();
@@ -128,7 +128,7 @@ export default class Task extends ETL {
128128
continue;
129129
}
130130

131-
const parsed = parse(alerts.message, { columns: true });
131+
const parsed = parse(Buffer.from(alerts.message, 'base64').toString('utf8'), { columns: true });
132132

133133
for (const p of parsed) {
134134
const activeAlert = this.type(OutputSchema, p)
@@ -195,7 +195,7 @@ export default class Task extends ETL {
195195
token: string;
196196
agencies: number[];
197197
}> {
198-
console.error('ok - Attempting Login');
198+
console.log('ok - Attempting Login');
199199
const loginForm = new FormData();
200200
loginForm.append('operation', 'login');
201201
loginForm.append('post_data', JSON.stringify({

0 commit comments

Comments
 (0)