fix(mta): Expose HttpResponse.statusCode and add explicit generic type annotations in DNSManager cache retrieval

This commit is contained in:
2025-03-15 14:13:02 +00:00
parent 983e6cb623
commit 4887ec9d93
4 changed files with 10 additions and 4 deletions

View File

@ -71,7 +71,7 @@ export class DNSManager {
const cacheKey = `mx:${domain}`;
// Check cache first
const cached = this.getFromCache(cacheKey);
const cached = this.getFromCache<plugins.dns.MxRecord[]>(cacheKey);
if (cached) {
return cached;
}
@ -103,7 +103,7 @@ export class DNSManager {
const cacheKey = `txt:${domain}`;
// Check cache first
const cached = this.getFromCache(cacheKey);
const cached = this.getFromCache<string[][]>(cacheKey);
if (cached) {
return cached;
}