Skip to content

Commit df1cf98

Browse files
committed
fix(request): cache wrong entity
1 parent fc017b0 commit df1cf98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/utils/request.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function request(url, parser) {
2020
const parsed = hparser.parse(resp.body);
2121
const result = parser(parsed);
2222
if (result) {
23-
cache[url] = parsed;
23+
cache[url] = result;
2424
setTimeout(() => { delete cache[url]; }, 60000);
2525
}
2626
return result;

0 commit comments

Comments
 (0)