aboutsummaryrefslogtreecommitdiff
path: root/src/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants.ts')
-rw-r--r--src/constants.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/constants.ts b/src/constants.ts
index c78b7ea..1792b94 100644
--- a/src/constants.ts
+++ b/src/constants.ts
@@ -66,11 +66,12 @@ async function fetchFile(path: string): Promise<GithubFile> {
},
)
const data = await r.json()
- return {
+ const file = {
path: data.path,
content: Buffer.from(data.content, data.encoding).toString(),
sha: data.sha
}
+ fileCache.set(path, file)
}
/**