MCPcopy Create free account
hub / github.com/ShipSecAI/studio / listDeliveries

Method listDeliveries

backend/src/webhooks/webhooks.service.ts:255–265  ·  view source on GitHub ↗
(auth: AuthContext | null, webhookId: string)

Source from the content-addressed store, hash-verified

253 // Delivery history
254
255 async listDeliveries(auth: AuthContext | null, webhookId: string): Promise<WebhookDelivery[]> {
256 const webhook = await this.repository.findById(webhookId, {
257 organizationId: auth?.organizationId,
258 });
259 if (!webhook) {
260 throw new NotFoundException(`Webhook ${webhookId} not found`);
261 }
262
263 const records = await this.deliveryRepository.listByWebhookId(webhookId);
264 return records.map((r) => this.mapDeliveryRecord(r));
265 }
266
267 async getDelivery(auth: AuthContext | null, deliveryId: string): Promise<WebhookDelivery> {
268 const delivery = await this.deliveryRepository.findById(deliveryId);

Callers 3

WebhookEditorPageFunction · 0.45
api.tsFile · 0.45

Calls 3

mapDeliveryRecordMethod · 0.95
findByIdMethod · 0.45
listByWebhookIdMethod · 0.45

Tested by

no test coverage detected