MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / handleDeleteDomain

Function handleDeleteDomain

apps/cloud/src/routes/app/org.tsx:226–235  ·  view source on GitHub ↗
(domainId: string, domain: string)

Source from the content-addressed store, hash-verified

224 : check({ featureId: "domain-verification" }).allowed;
225
226 const handleDeleteDomain = async (domainId: string, domain: string) => {
227 const exit = await doDeleteDomain({
228 params: { domainId },
229 reactivityKeys: orgDomainWriteKeys,
230 });
231 trackEvent("org_domain_removed", { success: Exit.isSuccess(exit) });
232 toast[Exit.isSuccess(exit) ? "success" : "error"](
233 Exit.isSuccess(exit) ? `Removed ${domain}` : "Failed to remove domain",
234 );
235 };
236
237 const handleAddDomain = async () => {
238 const exit = await doGetVerificationLink({

Callers 1

DomainsSectionFunction · 0.85

Calls 1

trackEventFunction · 0.90

Tested by

no test coverage detected