From 1a84133757046e9eeadd19f017c83bc9e974f111 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 17 Jan 2022 19:27:03 +0530 Subject: [PATCH] fixes missing field from record --- domains/teobouvard.json | 3 ++- utils/domain-service.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/domains/teobouvard.json b/domains/teobouvard.json index 1b9060b9c..ac0bc8287 100644 --- a/domains/teobouvard.json +++ b/domains/teobouvard.json @@ -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" diff --git a/utils/domain-service.js b/utils/domain-service.js index ea39701d9..28504f0fd 100644 --- a/utils/domain-service.js +++ b/utils/domain-service.js @@ -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);