The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix website marketplace queries after logo -> logoUrl schema rename (#24695)
martmullfbce1f61da20
diff --git a/packages/twenty-website/src/apps-marketplace/fetch-marketplace-app-detail.ts b/packages/twenty-website/src/apps-marketplace/fetch-marketplace-app-detail.tsindex 7da23ff21a2..b84b9b42d0d 100644--- a/packages/twenty-website/src/apps-marketplace/fetch-marketplace-app-detail.ts+++ b/packages/twenty-website/src/apps-marketplace/fetch-marketplace-app-detail.ts@@ -14,10 +14,10 @@ const FIND_MARKETPLACE_APP_DETAIL_QUERY = `descriptionauthorcategory- logo+ logoUrlwebsiteUrlaboutDescription- screenshots+ galleryImages}}`;@@ -31,10 +31,10 @@ type ApiMarketplaceAppDetail = {description?: string | null;author?: string | null;category?: string | null;- logo?: string | null;+ logoUrl?: string | null;websiteUrl?: string | null;aboutDescription?: string | null;- screenshots?: string[] | null;+ galleryImages?: string[] | null;};type FindMarketplaceAppDetailData = {@@ -69,11 +69,11 @@ export async function fetchMarketplaceAppDetailBySlug(tagline: app.tagline,author: detail.author ?? app.author,category: detail.category ?? app.category,- logoUrl: detail.logo ?? app.logoUrl,+ logoUrl: detail.logoUrl ?? app.logoUrl,sourcePackage: detail.sourcePackage ?? undefined,isVetted: detail.isVetted,description: detail.aboutDescription ?? detail.description ?? app.tagline,- screenshots: detail.screenshots ?? [],+ screenshots: detail.galleryImages ?? [],websiteUrl: detail.websiteUrl ?? undefined,latestAvailableVersion: detail.latestAvailableVersion ?? undefined,};diff --git a/packages/twenty-website/src/apps-marketplace/fetch-marketplace-apps.ts b/packages/twenty-website/src/apps-marketplace/fetch-marketplace-apps.tsindex 6e62307bac0..58b68115596 100644--- a/packages/twenty-website/src/apps-marketplace/fetch-marketplace-apps.ts+++ b/packages/twenty-website/src/apps-marketplace/fetch-marketplace-apps.ts@@ -10,7 +10,7 @@ const FIND_MANY_MARKETPLACE_APPS_QUERY = `descriptionauthorcategory- logo+ logoUrlsourcePackageisVetted}@@ -23,7 +23,7 @@ type ApiMarketplaceApp = {description: string;author: string;category: string;- logo?: string | null;+ logoUrl?: string | null;sourcePackage?: string | null;isVetted: boolean;};@@ -39,7 +39,7 @@ const normalizeApp = (apiApp: ApiMarketplaceApp): MarketplaceApp => ({tagline: apiApp.description,author: apiApp.author,category: apiApp.category,- logoUrl: apiApp.logo ?? undefined,+ logoUrl: apiApp.logoUrl ?? undefined,sourcePackage: apiApp.sourcePackage ?? undefined,isVetted: apiApp.isVetted,});