Skip to content

Commit

Permalink
Remove skipInvite parameter from draftExpenseAndInviteUser mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jan 21, 2025
1 parent b4bc737 commit bd1e024
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/project_allocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def send_expense_invite

query = <<~GRAPHQL
mutation($expense: ExpenseInviteDraftInput!, $account: AccountReferenceInput!) {
draftExpenseAndInviteUser(expense: $expense, account: $account, skipInvite: true, lockedFields: [AMOUNT, DESCRIPTION, TYPE]) {
draftExpenseAndInviteUser(expense: $expense, account: $account, lockedFields: [AMOUNT, DESCRIPTION, TYPE]) {
id
legacyId
draft
Expand Down Expand Up @@ -297,8 +297,7 @@ def send_draft_expense_invitation_to_collective(collective_slug, amount_cents, d
) {
draftExpenseAndInviteUser(
account: $account,
expense: $expense,
skipInvite: true
expense: $expense
) {
id
status
Expand Down

0 comments on commit bd1e024

Please sign in to comment.