Skip to content

Commit

Permalink
Merge pull request #3123 from ONSdigital/update-for-CIR-changes
Browse files Browse the repository at this point in the history
updated id to guid
  • Loading branch information
martyncolmer authored Jul 31, 2024
2 parents a9a4d94 + 0adb8b6 commit 100048d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions eq-author-api/schema/resolvers/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1636,8 +1636,7 @@ const Resolvers = {
.then(async (res) => {
if (res.status === 200) {
const responseJson = res.data;

publishResult.cirId = responseJson.id;
publishResult.cirId = responseJson.guid;
publishResult.cirVersion = responseJson.ci_version;
publishResult.success = true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion eq-author-api/schema/tests/publishSchema.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fetch.mockImplementation(() =>
Promise.resolve({
status: 200,
json: () => ({
id: "cir-id-1",
guid: "cir-id-1",
// eslint-disable-next-line camelcase
ci_version: "1",
}),
Expand Down

0 comments on commit 100048d

Please sign in to comment.