diff --git a/client/src/pages/Settings.tsx b/client/src/pages/Settings.tsx index c9dba05..5621d81 100644 --- a/client/src/pages/Settings.tsx +++ b/client/src/pages/Settings.tsx @@ -52,7 +52,6 @@ function Profile() { const INTEGRATION_STATES = { devto: { name: "devto", enabled: true }, medium: { name: "medium", enabled: false }, - substack: { name: "substack", enabled: false }, devpad: { name: "devpad", enabled: true } } as const; @@ -310,7 +309,7 @@ function DevpadCard({ refetch }: { refetch: () => Promise }) { setLoading(false); return; } - //await fetchProjects(); + await fetchProjects(); }; const fetchProjects = async () => { @@ -332,10 +331,6 @@ function DevpadCard({ refetch }: { refetch: () => Promise }) { setLoading(false); }; - useEffect(() => { - //fetchProjects(); - }, []); - if (loading) return ; return ( diff --git a/src/types/types.go b/src/types/types.go index 9723145..0244aac 100644 --- a/src/types/types.go +++ b/src/types/types.go @@ -90,22 +90,8 @@ type FetchLink struct { type Project struct { ID string `json:"id"` ProjectID string `json:"project_id"` - OwnerID string `json:"owner_id"` Name string `json:"name"` - Description string `json:"description"` - Specification string `json:"specification"` - RepoURL string `json:"repo_url"` - RepoID string `json:"repo_id"` - IconURL string `json:"icon_url"` - Status string `json:"status"` - Deleted bool `json:"deleted"` - LinkURL string `json:"link_url"` - LinkText string `json:"link_text"` Visibility string `json:"visibility"` - CurrentVersion string `json:"current_version"` - ScanBranch string `json:"scan_branch"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` } type ProjectCache struct {