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

Method remove

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

Source from the content-addressed store, hash-verified

78 }
79
80 remove(key: IntegrationTaskKey, payload: string): Promise<DeleteAudienceResult> {
81 return this.runTask(
82 key,
83 async (client, task) => {
84 const { error, data } = await client.audiences.remove(payload);
85
86 if (error) {
87 throw error;
88 }
89
90 if (!data) {
91 throw new Error("No data returned from Resend");
92 }
93
94 return data;
95 },
96 {
97 name: "Remove Audience",
98 params: payload,
99 properties: [
100 {
101 label: "ID",
102 text: payload,
103 },
104 ],
105 retry: retry.standardBackoff,
106 },
107 handleResendError
108 );
109 }
110
111 list(key: IntegrationTaskKey): Promise<ListAudiencesResult> {
112 return this.runTask(

Callers

nothing calls this directly

Calls 1

runTaskMethod · 0.45

Tested by

no test coverage detected