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