diff --git a/app/components/Analyst/PendingChangeRequest/PendingChangeRequest.tsx b/app/components/Analyst/PendingChangeRequest/PendingChangeRequest.tsx index 9abca7ba5f..0fd3fe52d8 100644 --- a/app/components/Analyst/PendingChangeRequest/PendingChangeRequest.tsx +++ b/app/components/Analyst/PendingChangeRequest/PendingChangeRequest.tsx @@ -72,7 +72,7 @@ const PendingChangeRequest = ({ application }) => { variables: { input: { _applicationId: rowId, - _ispending: isPendingRequest, + _isPending: isPendingRequest, _comment: reasonForChange, }, }, diff --git a/app/schema/schema.graphql b/app/schema/schema.graphql index 2701284261..43d99bd830 100644 --- a/app/schema/schema.graphql +++ b/app/schema/schema.graphql @@ -80433,7 +80433,7 @@ input CreatePendingChangeRequestInput { """ clientMutationId: String _applicationId: Int! - _ispending: Boolean! + _isPending: Boolean! _comment: String } diff --git a/app/tests/components/Analyst/PendingChangeRequest.test.tsx b/app/tests/components/Analyst/PendingChangeRequest.test.tsx index ddd2791f0a..44c1d48dcb 100644 --- a/app/tests/components/Analyst/PendingChangeRequest.test.tsx +++ b/app/tests/components/Analyst/PendingChangeRequest.test.tsx @@ -133,7 +133,7 @@ describe('The Pending Change Request component', () => { input: { _applicationId: 1, _comment: 'Edited comment.', - _ispending: true, + _isPending: true, }, } ); @@ -195,7 +195,7 @@ describe('The Pending Change Request component', () => { input: { _applicationId: 1, _comment: 'Yes, change request cancelled', - _ispending: false, + _isPending: false, }, } ); @@ -263,7 +263,7 @@ describe('The Pending Change Request component', () => { input: { _applicationId: 1, _comment: 'This is a test comment.', - _ispending: true, + _isPending: true, }, } ); @@ -297,7 +297,7 @@ describe('The Pending Change Request component', () => { input: { _applicationId: 1, _comment: null, - _ispending: true, + _isPending: true, }, } ); diff --git a/db/deploy/mutations/create_pending_change_request.sql b/db/deploy/mutations/create_pending_change_request.sql index a0392a1bc0..222d747e29 100644 --- a/db/deploy/mutations/create_pending_change_request.sql +++ b/db/deploy/mutations/create_pending_change_request.sql @@ -2,13 +2,13 @@ begin; -create or replace function ccbc_public.create_pending_change_request(_application_id int, _isPending boolean, _comment varchar default null) returns ccbc_public.application_pending_change_request as $$ +create or replace function ccbc_public.create_pending_change_request(_application_id int, _is_pending boolean, _comment varchar default null) returns ccbc_public.application_pending_change_request as $$ declare new_request_id int; begin insert into ccbc_public.application_pending_change_request (application_id, comment, is_pending) - values (_application_id, _comment, _isPending) returning id into new_request_id; + values (_application_id, _comment, _is_pending) returning id into new_request_id; update ccbc_public.application_pending_change_request set archived_at = now()