We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c0bdfb + 200fbf0 commit cef5406Copy full SHA for cef5406
apps/app/src/jobs/tasks/onboarding/onboard-organization.ts
@@ -36,10 +36,11 @@ export const onboardOrganization = task({
36
{
37
path: `${process.env.BETTER_AUTH_URL}/${organizationId}`,
38
secret: process.env.REVALIDATION_SECRET,
39
+ type: "layout",
40
},
41
);
42
- if (!revalidateResponse.data.ok) {
43
+ if (!revalidateResponse.data?.revalidated) {
44
logger.error(
45
`Failed to revalidate path: ${revalidateResponse.statusText}`,
46
0 commit comments