Skip to content

Commit c888533

Browse files
Bill Leoutsakoswaleedlatif1
authored andcommitted
fix(quickbooks): align primary webhook trigger fallback
1 parent 5c5c014 commit c888533

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
@@ -2164,8 +2164,8 @@ export const QuickBooksBlock: BlockConfig<QuickBooksResponse> = {
21642164
triggers: {
21652165
enabled: true,
21662166
available: [
2167-
'quickbooks_customer_events',
21682167
'quickbooks_invoice_events',
2168+
'quickbooks_customer_events',
21692169
'quickbooks_payment_events',
21702170
'quickbooks_vendor_events',
21712171
'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)