diff --git a/eq-author-api/schema/resolvers/base.js b/eq-author-api/schema/resolvers/base.js index c77225062d..e694571a53 100644 --- a/eq-author-api/schema/resolvers/base.js +++ b/eq-author-api/schema/resolvers/base.js @@ -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 { diff --git a/eq-author-api/schema/tests/publishSchema.test.js b/eq-author-api/schema/tests/publishSchema.test.js index b76e3d7a2c..bca4d74219 100644 --- a/eq-author-api/schema/tests/publishSchema.test.js +++ b/eq-author-api/schema/tests/publishSchema.test.js @@ -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", }),