Tiny smidge of tidying

This commit is contained in:
Dan Buch 2023-01-21 20:42:45 -05:00
parent 4f05c1cbae
commit 9d7f4f5932
Signed by: meatballhat
GPG Key ID: A12F782281063434

View File

@ -1,3 +1,4 @@
// vim:filetype=javascript
const defaultSeriesURL = "https://api.bls.gov/publicAPI/v2/timeseries/data/"; const defaultSeriesURL = "https://api.bls.gov/publicAPI/v2/timeseries/data/";
const defaultSeriesID = "CUUR0200SA0"; const defaultSeriesID = "CUUR0200SA0";
const defaultStartYear = "2014"; const defaultStartYear = "2014";
@ -11,9 +12,9 @@ function CURRENTCPI(blsToken, options) {
var reqOptions = { var reqOptions = {
"method": "post", "method": "post",
"payload": JSON.stringify({ "payload": JSON.stringify({
"seriesid": [seriesID], "seriesid": [seriesID],
"startyear": startYear, "startyear": startYear,
"endyear": endYear "endyear": endYear
}), }),
"contentType": "application/json", "contentType": "application/json",
"headers": { "headers": {