Skip to content

Commit

Permalink
Merge pull request #221 from datopian/fix/internal-api-url-1
Browse files Browse the repository at this point in the history
Connect to CKAN API via private network from frontend server.
  • Loading branch information
anuveyatsu committed Nov 19, 2021
2 parents d7c2db6 + 70c9a8d commit d35cbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dms.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const logger = require('../utils/logger')
class DmsModel {
constructor(config) {
this.config = config
this.api = config.get('API_URL')
this.api = config.get('INTERNAL_API_URL') || config.get('API_URL')
}

async getJsonResponse(params, action) {
Expand Down

0 comments on commit d35cbb4

Please sign in to comment.