access fetch body
export const downloadRssBody = action({
args: {
id: v.id("podcast"), rss: v.string(),
},
// Action implementation.
handler: async (ctx, args) => {
const response = await fetch(args.rss);
const body = response.text();
console.log("downloadRssBody {body}");
ctx.runMutation(api.addPodcast.patchPodcastRss, {
id: args.id,
rss_body: response.text()
});
},
});
