(auth: AuthContext | null, id: string)
| 43 | } |
| 44 | |
| 45 | async get(auth: AuthContext | null, id: string): Promise<WebhookConfiguration> { |
| 46 | const organizationId = this.requireOrganizationId(auth); |
| 47 | const record = await this.repository.findById(id, { organizationId }); |
| 48 | if (!record) { |
| 49 | throw new NotFoundException(`Webhook ${id} not found`); |
| 50 | } |
| 51 | return this.mapConfigurationRecord(record); |
| 52 | } |
| 53 | |
| 54 | async create( |
| 55 | auth: AuthContext | null, |
no test coverage detected