MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / get

Method get

integrations/resend/src/audiences.ts:49–78  ·  view source on GitHub ↗
(key: IntegrationTaskKey, payload: string)

Source from the content-addressed store, hash-verified

47 }
48
49 get(key: IntegrationTaskKey, payload: string): Promise<GetAudienceResult> {
50 return this.runTask(
51 key,
52 async (client, task) => {
53 const { error, data } = await client.audiences.get(payload);
54
55 if (error) {
56 throw error;
57 }
58
59 if (!data) {
60 throw new Error("No data returned from Resend");
61 }
62
63 return data;
64 },
65 {
66 name: "Get Audience",
67 params: payload,
68 properties: [
69 {
70 label: "ID",
71 text: payload,
72 },
73 ],
74 retry: retry.standardBackoff,
75 },
76 handleResendError
77 );
78 }
79
80 remove(key: IntegrationTaskKey, payload: string): Promise<DeleteAudienceResult> {
81 return this.runTask(

Callers

nothing calls this directly

Calls 1

runTaskMethod · 0.45

Tested by

no test coverage detected