mirror of
https://github.com/sys-32Dev/register.git
synced 2026-08-08 20:06:34 +00:00
changes record comparison
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user