forked from FoundKeyGang/FoundKey
backend: add return type to getAntennas
This commit is contained in:
parent
848b9bcdf1
commit
629b865789
1 changed files with 1 additions and 1 deletions
|
@ -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<Antenna[]> {
|
||||
if (!antennasFetched) {
|
||||
antennas = await Antennas.find();
|
||||
antennasFetched = true;
|
||||
|
|
Loading…
Reference in a new issue