if (workspace.slug !== slug) {
await betterFetch("/api/auth/organization/set-active", {
baseURL: request.nextUrl.origin,
headers: request.headers,
method: "POST",
body: { organizationSlug: slug },
});
}
if (workspace.slug !== slug) {
await betterFetch("/api/auth/organization/set-active", {
baseURL: request.nextUrl.origin,
headers: request.headers,
method: "POST",
body: { organizationSlug: slug },
});
}