*Set options record type default to content
This commit is contained in:
parent
ac12204391
commit
13eb79ae7e
|
@ -7,6 +7,7 @@ import type {
|
||||||
} from "@lumeweb/resolver-common";
|
} from "@lumeweb/resolver-common";
|
||||||
import { RpcNetwork } from "@lumeweb/kernel-rpc-client";
|
import { RpcNetwork } from "@lumeweb/kernel-rpc-client";
|
||||||
import { ResolverRegistry } from "./resolverRegistry.js";
|
import { ResolverRegistry } from "./resolverRegistry.js";
|
||||||
|
import { DNS_RECORD_TYPE } from "@lumeweb/resolver-common";
|
||||||
|
|
||||||
let resolver: ResolverModule;
|
let resolver: ResolverModule;
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ async function handleResolve(aq: ActiveQuery) {
|
||||||
try {
|
try {
|
||||||
ret = await resolver.resolve(
|
ret = await resolver.resolve(
|
||||||
aq.callerInput.domain,
|
aq.callerInput.domain,
|
||||||
aq.callerInput?.options ?? {},
|
aq.callerInput?.options ?? { type: DNS_RECORD_TYPE.CONTENT },
|
||||||
aq.callerInput?.bypassCache || false
|
aq.callerInput?.bypassCache || false
|
||||||
);
|
);
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
|
Loading…
Reference in New Issue