MCPcopy Create free account
hub / github.com/CodebuffAI/codebuff / fetchPublishers

Function fetchPublishers

web/src/app/orgs/[slug]/settings/page.tsx:44–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 // Fetch publishers data for this organization
43 useEffect(() => {
44 const fetchPublishers = async () => {
45 if (!organization?.id) return
46
47 setPublishersLoading(true)
48 try {
49 const response = await fetch(`/api/orgs/${organization.id}/publishers`)
50 if (response.ok) {
51 const data = await response.json()
52 setPublishers(data.publishers || [])
53 }
54 } catch (error) {
55 console.error('Error fetching publishers:', error)
56 } finally {
57 setPublishersLoading(false)
58 }
59 }
60
61 fetchPublishers()
62 }, [organization?.id])

Callers 1

OrganizationSettingsPageFunction · 0.85

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected