From bf500314df5bb7de69fdea0de48046d3605100db Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Wed, 27 Sep 2023 11:58:27 -0500 Subject: [PATCH] Fix stuff --- cloud_functions/src/alarmMissingVaas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud_functions/src/alarmMissingVaas.ts b/cloud_functions/src/alarmMissingVaas.ts index 1d3229c6..ff435dd9 100644 --- a/cloud_functions/src/alarmMissingVaas.ts +++ b/cloud_functions/src/alarmMissingVaas.ts @@ -112,7 +112,7 @@ async function getGovernedVaas(): Promise { assertEnvironmentVariable('FIRESTORE_GOVERNOR_STATUS_COLLECTION') ); const snapshot = await collection.get(); - snapshot.forEach(async (doc) => { + for (const doc of snapshot.docs) { const data = doc.data(); if (data) { // data should be a ChainStatus[] @@ -141,7 +141,7 @@ async function getGovernedVaas(): Promise { }); }); } - }); + } return vaas; }