fix: ensure we have records
This commit is contained in:
parent
067d53b117
commit
2937761e11
|
@ -32,7 +32,7 @@ export async function resolve(
|
||||||
return e as Error;
|
return e as Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res) {
|
if (res && res?.records.length) {
|
||||||
cache.set(cacheId, res);
|
cache.set(cacheId, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue