Skip to content

Commit cef5406

Browse files
authored
Merge pull request #770 from trycompai/mariano/comp-1242-fix-revalidation-2
[dev] [Marfuen] mariano/comp-1242-fix-revalidation-2
2 parents 8c0bdfb + 200fbf0 commit cef5406

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/app/src/jobs/tasks/onboarding/onboard-organization.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ export const onboardOrganization = task({
3636
{
3737
path: `${process.env.BETTER_AUTH_URL}/${organizationId}`,
3838
secret: process.env.REVALIDATION_SECRET,
39+
type: "layout",
3940
},
4041
);
4142

42-
if (!revalidateResponse.data.ok) {
43+
if (!revalidateResponse.data?.revalidated) {
4344
logger.error(
4445
`Failed to revalidate path: ${revalidateResponse.statusText}`,
4546
);

0 commit comments

Comments
 (0)