fix makeCacheableSignalKeyStore await cache get (#1817)
Co-authored-by: Henrique Dias <dias.dsn.cir@alterdata.com.br>
This commit is contained in:
@@ -48,7 +48,7 @@ export function makeCacheableSignalKeyStore(
|
|||||||
const data: { [_: string]: SignalDataTypeMap[typeof type] } = {}
|
const data: { [_: string]: SignalDataTypeMap[typeof type] } = {}
|
||||||
const idsToFetch: string[] = []
|
const idsToFetch: string[] = []
|
||||||
for (const id of ids) {
|
for (const id of ids) {
|
||||||
const item = cache.get<SignalDataTypeMap[typeof type]>(getUniqueId(type, id)) as any
|
const item = await cache.get<SignalDataTypeMap[typeof type]>(getUniqueId(type, id)) as any
|
||||||
if (typeof item !== 'undefined') {
|
if (typeof item !== 'undefined') {
|
||||||
data[id] = item
|
data[id] = item
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user