Skip to content

Commit

Permalink
issue 1150 updated constants to pull new data
Browse files Browse the repository at this point in the history
  • Loading branch information
horatiorosa committed Mar 21, 2024
1 parent 2f18507 commit fc98e06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ app.db = pgp(process.env.DATABASE_URL);

// allows CORS
app.use(cors({
origin: ['https://staging--labs-factfinder.netlify.app','https://develop--labs-factfinder.netlify.app','https://popfactfinder.planning.nyc.gov', 'http://localhost:4200','https://factfinder-staging.planninglabs.nyc','https://factfinder-develop.planninglabs.nyc'],
methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
origin: ['https://staging--labs-factfinder.netlify.app', 'https://develop--labs-factfinder.netlify.app', 'https://popfactfinder.planning.nyc.gov', 'http://localhost:4200', 'https://factfinder-staging.planninglabs.nyc', 'https://factfinder-develop.planninglabs.nyc'],
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
allowedHeaders: 'X-Requested-With,Content-Type,Authorization',
}))
}));

// middleware
app.use(logger('dev'));
Expand Down
8 changes: 4 additions & 4 deletions special-calculations/data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const PREV_YEAR = 'Y2006-2010'; // TODO: update with actual previous year
const GEOGRAPHY_VERSION = '2023-08-29';
const DECENNIAL_SCHEMA_NAME = 'decennial';
const DECENNIAL_LATEST_TABLE_NAME = '2020';
const DECENNIAL_LATEST_VERSION = '2024-03-05';
const DECENNIAL_LATEST_VERSION = '2024-03-19';
const DECENNIAL_EARLIEST_TABLE_NAME = '2010';
const DECENNIAL_EARLIEST_VERSION = '2024-03-05';
const DECENNIAL_EARLIEST_VERSION = '2024-03-19';
const ACS_SCHEMA_NAME = 'acs';
const ACS_LATEST_TABLE_NAME = '2022';
const ACS_LATEST_VERSION = '2024-03-05';
const ACS_LATEST_VERSION = '2024-03-19';
const ACS_EARLIEST_TABLE_NAME = '2010';
const ACS_EARLIEST_VERSION = '2024-03-05';
const ACS_EARLIEST_VERSION = '2024-03-19';
const ACS_METADATA_FULL_PATH = `"${ACS_SCHEMA_NAME}"."metadata"`;
const ACS_LATEST_TABLE_FULL_PATH = `"${ACS_SCHEMA_NAME}"."${ACS_LATEST_TABLE_NAME}"`;
const ACS_EARLIEST_TABLE_FULL_PATH = `"${ACS_SCHEMA_NAME}"."${ACS_EARLIEST_TABLE_NAME}"`;
Expand Down

0 comments on commit fc98e06

Please sign in to comment.