diff --git a/.envrc b/.envrc new file mode 100644 index 000000000..4a4726a5c --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use_nix diff --git a/utils/domain-service.js b/utils/domain-service.js index 14112d484..ea39701d9 100644 --- a/utils/domain-service.js +++ b/utils/domain-service.js @@ -44,7 +44,8 @@ const recordToEmailMx = ({ name, address, priority }) => ({ priority, }) -const getHostKey = host => `${host.name}##${host.type}##${host.address}`; +const getHostKey = host => + `${host.name?.toLowerCase()}##${host.type.toLowerCase()}##${host.address?.toLowerCase()}`; const diffRecords = (oldRecords, newRecords) => { const isMatchingRecord = (a, b) => getHostKey(a) === getHostKey(b);