From 629b8657896cfd4614f804b8fb46e88d228b6bd6 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Wed, 16 Nov 2022 19:44:20 -0500 Subject: [PATCH] backend: add return type to getAntennas --- packages/backend/src/misc/antenna-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/misc/antenna-cache.ts b/packages/backend/src/misc/antenna-cache.ts index 97249c146..6523d89b6 100644 --- a/packages/backend/src/misc/antenna-cache.ts +++ b/packages/backend/src/misc/antenna-cache.ts @@ -5,7 +5,7 @@ import { subscriber } from '@/db/redis.js'; let antennasFetched = false; let antennas: Antenna[] = []; -export async function getAntennas() { +export async function getAntennas(): Promise { if (!antennasFetched) { antennas = await Antennas.find(); antennasFetched = true;