fixes missing field from record

This commit is contained in:
Akshay Nair
2022-01-17 19:27:03 +05:30
parent fd8d055fd3
commit 1a84133757
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
"description": "Personal github page",
"repo": "https://github.com/teobouvard/teobouvard.github.io",
"owner": {
"username": "teobouvard"
"username": "teobouvard",
"email": ""
},
"record": {
"CNAME": "teobouvard.github.io"
+1 -1
View File
@@ -45,7 +45,7 @@ const recordToEmailMx = ({ name, address, priority }) => ({
})
const getHostKey = host =>
`${host.name?.toLowerCase()}##${host.type.toLowerCase()}##${host.address?.toLowerCase()}`;
`${host.name.toLowerCase()}##${host.type.toLowerCase()}##${host.address.toLowerCase()}`;
const diffRecords = (oldRecords, newRecords) => {
const isMatchingRecord = (a, b) => getHostKey(a) === getHostKey(b);