Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RRanath committed May 22, 2024
1 parent 2997b36 commit 76bcad3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const PendingChangeRequest = ({ application }) => {
variables: {
input: {
_applicationId: rowId,
_ispending: isPendingRequest,
_isPending: isPendingRequest,
_comment: reasonForChange,
},
},
Expand Down
2 changes: 1 addition & 1 deletion app/schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -80433,7 +80433,7 @@ input CreatePendingChangeRequestInput {
"""
clientMutationId: String
_applicationId: Int!
_ispending: Boolean!
_isPending: Boolean!
_comment: String
}

Expand Down
8 changes: 4 additions & 4 deletions app/tests/components/Analyst/PendingChangeRequest.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('The Pending Change Request component', () => {
input: {
_applicationId: 1,
_comment: 'Edited comment.',
_ispending: true,
_isPending: true,
},
}
);
Expand Down Expand Up @@ -195,7 +195,7 @@ describe('The Pending Change Request component', () => {
input: {
_applicationId: 1,
_comment: 'Yes, change request cancelled',
_ispending: false,
_isPending: false,
},
}
);
Expand Down Expand Up @@ -263,7 +263,7 @@ describe('The Pending Change Request component', () => {
input: {
_applicationId: 1,
_comment: 'This is a test comment.',
_ispending: true,
_isPending: true,
},
}
);
Expand Down Expand Up @@ -297,7 +297,7 @@ describe('The Pending Change Request component', () => {
input: {
_applicationId: 1,
_comment: null,
_ispending: true,
_isPending: true,
},
}
);
Expand Down
4 changes: 2 additions & 2 deletions db/deploy/mutations/create_pending_change_request.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 76bcad3

Please sign in to comment.