Fix Atomic state

This commit is contained in:
Raven Scott
2026-05-27 19:44:05 -04:00
parent 3ece7abe9f
commit c8334a8d63
5 changed files with 83 additions and 33 deletions
@@ -280,7 +280,8 @@ async function handleDomainsRoutes(req, res) {
let errorCount = 0;
for (const entry of entriesToRemove) {
try {
await pass.remove(entry.key);
const { dnsPassRemove } = require('../../../core/dns-pass-queue');
await dnsPassRemove(pass, entry.key);
removedCount++;
} catch (err) {
logError('Admin', `Error removing entry ${entry.key}: ${err.message}`);