Skip to content

Commit

Permalink
Amend system licence import route
Browse files Browse the repository at this point in the history
https://eaflood.atlassian.net/browse/WATER-4575

> Part of the work to migrate the legacy licence import job

In [Import Licence versions](DEFRA/water-abstraction-system#1195) following some feedback we've decided to amend the endpoint that this repo will hit in [water-abstraction-system](https://github.com/DEFRA/water-abstraction-system) to trigger the import of a licence from NALD.

This change updates the URL to `/import/licence/legacy`.
  • Loading branch information
Cruikshanks committed Aug 27, 2024
1 parent 4d9b69f commit c849a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/services/water-system-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { serviceRequest } = require('@envage/water-abstraction-helpers')
const config = require('../../../config')

const postImportLicence = async (data) => {
const url = new URL(`${config.services.system}/import/licence`)
const url = new URL(`${config.services.system}/import/licence/legacy`)

return serviceRequest.post(url.href, {
body: data,
Expand Down

0 comments on commit c849a2a

Please sign in to comment.