Merge branch 'is-a-dev:main' into main

This commit is contained in:
sdxqw
2022-06-21 00:48:06 +02:00
committed by GitHub
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"owner": {
"username": "@is-a-dev/maintainers",
"email": "mahir@molai.dev"
},
"record": {
"A": ["199.36.158.100"]
}
}
+2 -2
View File
@@ -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;
});