Refactor
This commit is contained in:
@@ -46,7 +46,7 @@ const entryResponseCache: Map<
|
||||
> = new Map()
|
||||
let size: number = 0
|
||||
|
||||
export const fetchAndCacheEntry = async (path: string, lang?: Lang) => {
|
||||
export const fetchAndCacheEntry = async (path: string, lang: Lang) => {
|
||||
const cacheKey = `${path + lang}`
|
||||
const cachedResponse = entryResponseCache.get(cacheKey)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user