We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91681a3 commit 1fd0842Copy full SHA for 1fd0842
src/structures/Cache.ts
@@ -27,7 +27,7 @@ export default class CacheManager {
27
try {
28
this.logger.info(`Using cache ${hash}`)
29
30
- return readFile(join(__dirname, `../../cache/${hash}.svg`), 'utf-8')
+ return await readFile(join(__dirname, `../../cache/${hash}.svg`), 'utf-8')
31
} catch (e) {
32
const svg = await generate(data)
33
this.cache(svg, hash)
0 commit comments