mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-06-02 08:13:04 +00:00
Merge branch 'is-a-dev:main' into main
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "@is-a-dev/maintainers",
|
||||
"email": "mahir@molai.dev"
|
||||
},
|
||||
"record": {
|
||||
"A": ["199.36.158.100"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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