Skip to content

Commit 2982466

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(quickbooks): align primary webhook trigger fallback
1 parent 937ec78 commit 2982466

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

apps/sim/blocks/blocks/quickbooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,8 +1978,8 @@ export const QuickBooksBlock: BlockConfig<QuickBooksResponse> = {
19781978
triggers: {
19791979
enabled: true,
19801980
available: [
1981-
'quickbooks_customer_events',
19821981
'quickbooks_invoice_events',
1982+
'quickbooks_customer_events',
19831983
'quickbooks_payment_events',
19841984
'quickbooks_vendor_events',
19851985
'quickbooks_bill_events',

apps/sim/triggers/quickbooks/quickbooks.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ describe('QuickBooks triggers', () => {
1010
it('keeps trigger definitions, dropdown options, and block access in parity', () => {
1111
const ids = QUICKBOOKS_TRIGGER_DEFINITIONS.map(({ id }) => id)
1212
expect(quickBooksTriggerOptions.map(({ id }) => id)).toEqual(ids)
13-
expect(QuickBooksBlock.triggers?.available).toEqual(ids)
13+
expect(QuickBooksBlock.triggers?.available).toEqual([
14+
'quickbooks_invoice_events',
15+
...ids.filter((id) => id !== 'quickbooks_invoice_events'),
16+
])
1417
for (const id of ids) expect(getTrigger(id).id).toBe(id)
1518
})
1619

0 commit comments

Comments
 (0)