Skip to content

Commit 9b50f70

Browse files
test/revalidation on repo addition
1 parent 9d3fd64 commit 9b50f70

File tree

2 files changed

+1
-4
lines changed
  • src
    • app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)
    • data/user

2 files changed

+1
-4
lines changed

src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/page.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ async function Dashboard({ params, searchParams }: DashboardProps) {
9393

9494
export async function generateMetadata({ params }: DashboardProps): Promise<Metadata> {
9595
const { organizationId } = organizationParamSchema.parse(params);
96-
console.log('------------------------------------')
97-
console.log('Params', params);
98-
console.log('Organization id', organizationId);
99-
console.log('------------------------------------')
10096
const title = await getOrganizationTitle(organizationId);
10197
console.log('Organization title', title);
10298

src/data/user/repos.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export async function getOrganizationRepos(organizationId: string) {
2929
throw error;
3030
}
3131

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

3435
return data;

0 commit comments

Comments
 (0)