Skip to content

Commit e494ad8

Browse files
committed
update auth
1 parent d607a49 commit e494ad8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/api/EpiData.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ export function importCDC({ locations, auth }: { locations: string; auth?: strin
199199
{
200200
epiweeks: epiRange(firstEpiWeek.cdc, currentEpiWeek),
201201
},
202-
{ auth, locations },
202+
{ locations },
203203
['total', 'num1', 'num2', 'num3', 'num4', 'num5', 'num6', 'num7', 'num8'],
204+
auth,
204205
);
205206
}
206207

@@ -355,7 +356,7 @@ export function importFluView({
355356
{
356357
epiweeks: epiRange(firstEpiWeek.fluview, currentEpiWeek),
357358
},
358-
{ regions, issues, lag, auth },
359+
{ regions, issues, lag },
359360
[
360361
'wili',
361362
'ili',
@@ -369,7 +370,7 @@ export function importFluView({
369370
'num_age_4',
370371
'num_age_5',
371372
],
372-
'',
373+
auth,
373374
{
374375
wili: '%wILI',
375376
ili: '%ILI',
@@ -408,8 +409,9 @@ export function importGHT({
408409
{
409410
epiweeks: epiRange(firstEpiWeek.ght, currentEpiWeek),
410411
},
411-
{ auth, locations, query },
412+
{ locations, query },
412413
['value'],
414+
auth,
413415
);
414416
}
415417

@@ -469,8 +471,9 @@ export function importQuidel({ auth, locations }: { auth: string; locations: str
469471
{
470472
epiweeks: epiRange(firstEpiWeek.quidel, currentEpiWeek),
471473
},
472-
{ auth, locations },
474+
{ locations },
473475
['value'],
476+
auth,
474477
);
475478
}
476479
export function importSensors({
@@ -491,8 +494,9 @@ export function importSensors({
491494
{
492495
epiweeks: epiRange(firstEpiWeek.sensors, currentEpiWeek),
493496
},
494-
{ auth, names, locations },
497+
{ names, locations },
495498
['value'],
499+
auth,
496500
);
497501
}
498502
// twtr
@@ -517,8 +521,9 @@ export function importTwitter({
517521
: {
518522
epiweeks: epiRange(firstEpiWeek.twitter, currentEpiWeek),
519523
},
520-
{ auth, locations, resolution },
524+
{ locations, resolution },
521525
['num', 'total', 'percent'],
526+
auth,
522527
);
523528
}
524529
export function importWiki({

0 commit comments

Comments
 (0)