Skip to content

Commit

Permalink
test/revalidation on repo addition
Browse files Browse the repository at this point in the history
  • Loading branch information
psiddharthdesign committed Jul 22, 2024
1 parent 9d3fd64 commit 9b50f70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ async function Dashboard({ params, searchParams }: DashboardProps) {

export async function generateMetadata({ params }: DashboardProps): Promise<Metadata> {
const { organizationId } = organizationParamSchema.parse(params);
console.log('------------------------------------')
console.log('Params', params);
console.log('Organization id', organizationId);
console.log('------------------------------------')
const title = await getOrganizationTitle(organizationId);
console.log('Organization title', title);

Expand Down
1 change: 1 addition & 0 deletions src/data/user/repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export async function getOrganizationRepos(organizationId: string) {
throw error;
}

revalidatePath(`/org/${organizationId}/projects`, 'page');
revalidatePath(`/org/${organizationId}/projects/create`, 'page');

return data;
Expand Down

0 comments on commit 9b50f70

Please sign in to comment.