Fix orch name update

This commit is contained in:
Marco van Dijk 2023-11-03 13:49:38 +01:00
parent bff8b714d9
commit 46305d97e8

View File

@ -206,7 +206,7 @@ const onOrchUpdate = async function (id, obj, tag, region, livepeer_regions) {
let newObj = orchCache[id.toLowerCase()];
if (!newObj) {
newObj = {
name: obj.name,
name: ensDomain,
regionalStats: {},
instances: {},
leaderboardResults: { lastTime: now },
@ -358,9 +358,6 @@ const onOrchUpdate = async function (id, obj, tag, region, livepeer_regions) {
newInstance.longitude = obj.resolv.geoLookup.longitude;
}
// Update name
newObj.name = obj.name;
// Finished updating
newObj.instances[obj.resolv.resolvedTarget] = newInstance;
newObj.regionalStats[tag] = newRegion;