fix: only push a record if we have a content response
This commit is contained in:
parent
86c9f02f5b
commit
65dffe202e
|
@ -93,10 +93,12 @@ export default class Eth extends AbstractResolverModule {
|
||||||
return resolverError(e);
|
return resolverError(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
records.push({
|
if (content) {
|
||||||
type: DNS_RECORD_TYPE.CONTENT,
|
records.push({
|
||||||
value: `${content.protocolType}://${content.decoded}` as string,
|
type: DNS_RECORD_TYPE.CONTENT,
|
||||||
});
|
value: `${content.protocolType}://${content.decoded}` as string,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([DNS_RECORD_TYPE.CUSTOM].includes(options.type)) {
|
if ([DNS_RECORD_TYPE.CUSTOM].includes(options.type)) {
|
||||||
|
|
Loading…
Reference in New Issue