diff --git a/api/src/paths/administrative/submission/{submissionId}/index.test.ts b/api/src/paths/administrative/submission/{submissionId}/index.test.ts index 1a3f015e..e2a2a3c6 100644 --- a/api/src/paths/administrative/submission/{submissionId}/index.test.ts +++ b/api/src/paths/administrative/submission/{submissionId}/index.test.ts @@ -36,7 +36,7 @@ describe('patchSubmissionRecord', () => { } }); - it('should return the patched submission record', async () => { + it.only('should return the patched submission record', async () => { const dbConnectionObj = getMockDBConnection({ commit: sinon.stub(), rollback: sinon.stub(), diff --git a/api/src/paths/administrative/submission/{submissionId}/index.ts b/api/src/paths/administrative/submission/{submissionId}/index.ts index d18fd53e..34f13c88 100644 --- a/api/src/paths/administrative/submission/{submissionId}/index.ts +++ b/api/src/paths/administrative/submission/{submissionId}/index.ts @@ -148,7 +148,7 @@ export function patchSubmissionRecord(): RequestHandler { const submissionId = Number(req.params.submissionId); - const patch = req.body.patch as PatchSubmissionRecord; + const patch = req.body as PatchSubmissionRecord; try { await connection.open(); diff --git a/app/src/hooks/api/useSubmissionsApi.ts b/app/src/hooks/api/useSubmissionsApi.ts index 856f7554..022d55be 100644 --- a/app/src/hooks/api/useSubmissionsApi.ts +++ b/app/src/hooks/api/useSubmissionsApi.ts @@ -118,7 +118,7 @@ const useSubmissionsApi = (axios: AxiosInstance) => { * @return {*} */ const updateSubmissionRecord = async (submissionId: number, patch: { security_reviewed: boolean }) => { - const { data } = await axios.patch(`api/administrative/submission/${submissionId}`, { patch }); + const { data } = await axios.patch(`api/administrative/submission/${submissionId}`, patch); return data; };