• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 12881890017

21 Jan 2025 07:13AM UTC coverage: 80.91%. First build
12881890017

Pull #1263

github

web-flow
Merge 1aab39586 into 2be93a15f
Pull Request #1263: feat: webhooks

6485 of 6849 branches covered (94.69%)

58 of 370 new or added lines in 7 files covered. (15.68%)

30774 of 38035 relevant lines covered (80.91%)

1827.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/nestjs-backend/src/event-emitter/listeners/webhook.listener.ts
NEW
1
import { Injectable } from '@nestjs/common';
×
2
import { OnEvent } from '@nestjs/event-emitter';
3
import { WebhookFactory } from '../../features/webhook/webhook.factory';
4
import { CoreEvent } from '../events';
5

6
// type IViewEvent = ViewUpdateEvent;
7
// type IRecordEvent = RecordCreateEvent | RecordDeleteEvent | RecordUpdateEvent;
8
// type IListenerEvent = IViewEvent | IRecordEvent;
9

10
@Injectable()
NEW
11
export class WebhookListener {
×
NEW
12
  constructor(private readonly webhookFactory: WebhookFactory) {}
×
13

NEW
14
  @OnEvent('base.*', { async: true })
×
NEW
15
  @OnEvent('table.*', { async: true })
×
NEW
16
  async listener(event: CoreEvent): Promise<void> {
×
NEW
17
    // event.context
×
NEW
18
    this.webhookFactory.run('', event);
×
NEW
19
  }
×
NEW
20
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc