*add missing resolveSuccess

This commit is contained in:
Derrick Hammer 2022-08-19 12:49:09 -04:00
parent 5070b94728
commit 7e5b9e4b22
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import {
resolverEmptyResponse,
ResolverModule,
ResolverOptions,
resolveSuccess,
} from "@lumeweb/resolver-common";
import { getTld } from "@lumeweb/resolver-common";
import { DNSRecord } from "@lumeweb/resolver-common";
@ -112,6 +113,10 @@ export default class Handshake extends AbstractResolverModule {
}
}
if (0 < records.length) {
return resolveSuccess(records);
}
return resolverEmptyResponse();
}