remove bad check on missing domains
This commit is contained in:
parent
ca3bbf4d7d
commit
0a130089bf
1 changed files with 3 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ interface IOpts {
|
|||
|
||||
async function nip89announcement(configData: IConfig) {
|
||||
const domains = configData.domains as Record<string, DomainConfig>;
|
||||
if (!domains) return;
|
||||
for (const [ domain, config ] of Object.entries(domains)) {
|
||||
const hasNip89 = !!config.nip89;
|
||||
if (!hasNip89) continue;
|
||||
|
|
@ -109,6 +110,8 @@ async function nip89announcement(configData: IConfig) {
|
|||
export async function start(opts: IOpts) {
|
||||
const configData = await getCurrentConfig(opts.config);
|
||||
|
||||
console.log(opts)
|
||||
|
||||
if (opts.adminNpubs && opts.adminNpubs.length > 0) {
|
||||
configData.admin.npubs = opts.adminNpubs;
|
||||
console.log(`✅ adminNpubs: ${opts.adminNpubs}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue