|
|
@@ -41,7 +41,7 @@ export class OrgService {
|
|
|
async findByUrl(url: string): Promise<Org> {
|
|
|
const match = /^(\w+)\.org\.gpt\.izouma\.com$/.exec(url)
|
|
|
if (match) {
|
|
|
- const subdomain = match[2]
|
|
|
+ const subdomain = match[1]
|
|
|
return await this.orgRepository.findOneOrFail({
|
|
|
where: {
|
|
|
subdomain
|