*Fix resolve

This commit is contained in:
Derrick Hammer 2023-02-19 16:44:20 -05:00
parent d2735c5470
commit 27dba64c45
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
import { Client, factory } from "@lumeweb/libkernel-universal"; import { Client, factory } from "@lumeweb/libkernel-universal";
import { DNS_RECORD_TYPE, ResolverOptions } from "@lumeweb/libresolver"; import {
DNS_RECORD_TYPE,
DNSResult,
ResolverOptions,
} from "@lumeweb/libresolver";
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA"; const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
@ -20,8 +24,8 @@ export class DnsClient extends Client {
domain: string, domain: string,
options: ResolverOptions = { type: DNS_RECORD_TYPE.CONTENT }, options: ResolverOptions = { type: DNS_RECORD_TYPE.CONTENT },
bypassCache: boolean = false bypassCache: boolean = false
): Promise<void> { ): Promise<DNSResult> {
return this.callModuleReturn("ready"); return this.callModuleReturn("resolve", { domain, options, bypassCache });
} }
} }