From 768b3d3b1f100f46a9d5f8f0286b42246bffe2c8 Mon Sep 17 00:00:00 2001 From: nibunabu Date: Sat, 22 Nov 2025 21:50:00 +0700 Subject: [PATCH] Fix: Use dns.promises in mail-config to prevent callback error The `mail-config` job crashes because it uses `await dns.resolveMx` which requires the Promise API, but the default import provides the Callback API. Error observed: `The "callback" argument must be of type function. Received undefined` This PR switches the import to `{ promises as dns }` to support the async/await usage present in the code. --- api/mail-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/mail-config.js b/api/mail-config.js index 1c8aff80..8e216571 100644 --- a/api/mail-config.js +++ b/api/mail-config.js @@ -1,4 +1,4 @@ -import dns from 'dns'; +import { promises as dns } from 'dns'; import URL from 'url-parse'; import middleware from './_common/middleware.js';