mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-10 02:21:55 +00:00
fix: fixes @ subdomain record creation
This commit is contained in:
@@ -14,7 +14,7 @@ const recordToRedirection = ({ name, address }) => ({
|
||||
});
|
||||
const recordToZone = ({ name, type, address, id, priority }) => ({
|
||||
line: id,
|
||||
name,
|
||||
name: name === '@' ? `${DOMAIN_DOMAIN}.` : name,
|
||||
type,
|
||||
address,
|
||||
...(type === 'MX' ? { priority } : {}),
|
||||
@@ -79,7 +79,7 @@ const executeBatch = (batches) => batches.reduce((promise, batch, index) => {
|
||||
const failed = results.filter(x => (x.result || {}).status != 1);
|
||||
|
||||
log(`${values.length - failed.length}/${values.length}`);
|
||||
failed.length && log(failed);
|
||||
failed.length && log(JSON.stringify(failed, null, 2));
|
||||
|
||||
return null;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user