* Get hosted brand by domain
(domain: string)
| 225 | * Get hosted brand by domain |
| 226 | */ |
| 227 | async getHostedBrandByDomain(domain: string): Promise<HostedBrand | null> { |
| 228 | const result = await query<HostedBrand>( |
| 229 | `SELECT ${HOSTED_BRAND_COLUMNS} FROM brands WHERE domain = $1`, |
| 230 | [domain.toLowerCase()] |
| 231 | ); |
| 232 | return result.rows[0] ? this.deserializeHostedBrand(result.rows[0]) : null; |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * List hosted brands by organization |
no test coverage detected