From bd1e02414a9a87dcad9d039d5af390cf9d479812 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Tue, 21 Jan 2025 11:34:41 +0000 Subject: [PATCH] Remove skipInvite parameter from draftExpenseAndInviteUser mutations --- app/models/project_allocation.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/project_allocation.rb b/app/models/project_allocation.rb index 90e22ec..e4eb210 100644 --- a/app/models/project_allocation.rb +++ b/app/models/project_allocation.rb @@ -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 @@ -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