Skip to content

Commit

Permalink
✨ r5 api add link to testimonials
Browse files Browse the repository at this point in the history
  • Loading branch information
stepandel committed Sep 20, 2024
1 parent 8ec9d8b commit 17a8b57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/api/common/projects/getProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async function getProjectsApi({
subcategory: data.application_subcategory,
statement: data.impact_statement,
},
testimonials: `https://www.metricsgarden.xyz/projects/${encodeURIComponent(projectData.name)}`,
};
});
}
Expand Down Expand Up @@ -108,6 +109,9 @@ async function getProjectsApi({
subcategory: null,
statement: null,
},
testimonials: project.name
? `https://www.metricsgarden.xyz/projects/${encodeURIComponent(project.name)}`
: "",
};
});
}, pagination);
Expand Down
1 change: 1 addition & 0 deletions src/app/api/common/projects/project.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export type Project = {
};
pricingModel?: Prisma.JsonValue;
impactStatement?: Prisma.JsonValue;
testimonials?: stirng;
};

0 comments on commit 17a8b57

Please sign in to comment.