diff --git a/src/server.ts b/src/server.ts index 9ef1d83..8bc9c4b 100644 --- a/src/server.ts +++ b/src/server.ts @@ -10,7 +10,10 @@ async function reload(): Promise { console.log("Loading Dining API..."); const parser = new DiningParser(); const locations = await parser.process(); - if (cachedLocations && locations.length < cachedLocations.length - 1) { + if ( + cachedLocations !== undefined && + locations.length < cachedLocations.length - 1 + ) { console.log( "Ignored location fetch since it (likely) has missing data", locations