fix: getCurrentOrg query for subdomains
This commit is contained in:
@@ -228,7 +228,7 @@ export async function getCurrentOrg(siteName: string, justGet = false, isCustomD
|
||||
`
|
||||
)
|
||||
.eq(isCustomDomain ? 'customDomain' : 'siteName', siteName)
|
||||
.filter('isCustomDomainVerified', 'eq', isCustomDomain ? true : undefined)
|
||||
.filter('isCustomDomainVerified', 'eq', isCustomDomain ? true : false)
|
||||
.returns<CurrentOrg[]>();
|
||||
console.log('data =', data);
|
||||
console.log('error =', error);
|
||||
|
||||
@@ -68,6 +68,7 @@ export const load = async ({ url, cookies }): Promise<LoadOutput> => {
|
||||
const subdomain = getSubdomain(url) || '';
|
||||
|
||||
const isDev = dev || isLocalHost;
|
||||
console.log('url.host', url.host);
|
||||
|
||||
if (!url.host.includes('.classroomio.com') && !isLocalHost) {
|
||||
// Custom domain
|
||||
|
||||
Reference in New Issue
Block a user