Fix domain name parsing on company creation (#4297)
* add domain parsing library * change package for psl * trying to fix error * fix * update * remove unused function
This commit is contained in:
@ -23,6 +23,10 @@ export class CreateCompanyService {
|
||||
): Promise<{
|
||||
[domainName: string]: string;
|
||||
}> {
|
||||
if (domainNames.length === 0) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const uniqueDomainNames = [...new Set(domainNames)];
|
||||
|
||||
const existingCompanies =
|
||||
|
||||
Reference in New Issue
Block a user