Skip to content

Commit

Permalink
fix: use datagov production urls
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs committed Aug 14, 2024
1 parent 7feeb11 commit d9303c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/datagovsg-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function databaseSearch(searchTerm, index, callback) {
if (isDgsV2) {
// Datagov-v2 search - query for dataset metadata first to retrieve column info
request = $.ajax({
url: `https://api-staging.data.gov.sg/v2/public/api/datasets/${resourceId}/metadata`,
url: `https://api-production.data.gov.sg/v2/public/api/datasets/${resourceId}/metadata`,
dataType: 'json'
}).then((resp) => {
const respData = Object.values(resp.data.columnMetadata.metaMapping)
Expand All @@ -96,7 +96,7 @@ function databaseSearch(searchTerm, index, callback) {
data.q = JSON.stringify({[formattedSearchField]: searchTerm})
}
return $.ajax({
url: 'https://35q3y4991j.execute-api.ap-southeast-1.amazonaws.com/api/action/datastore_search',
url: 'https://data.gov.sg/api/action/datastore_search',
data: data,
dataType: 'json',
success: callback
Expand All @@ -106,7 +106,7 @@ function databaseSearch(searchTerm, index, callback) {
} else {
data.q = searchTerm
request = $.ajax({
url: 'https://35q3y4991j.execute-api.ap-southeast-1.amazonaws.com/api/action/datastore_search',
url: 'https://data.gov.sg/api/action/datastore_search',
data: data,
dataType: 'json',
success: callback
Expand Down

0 comments on commit d9303c8

Please sign in to comment.