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 antennasFetched = false;
|
||||||
let antennas: Antenna[] = [];
|
let antennas: Antenna[] = [];
|
||||||
|
|
||||||
export async function getAntennas() {
|
export async function getAntennas(): Promise<Antenna[]> {
|
||||||
if (!antennasFetched) {
|
if (!antennasFetched) {
|
||||||
antennas = await Antennas.find();
|
antennas = await Antennas.find();
|
||||||
antennasFetched = true;
|
antennasFetched = true;
|
||||||
|
|
Loading…
Reference in a new issue