add a method to cache all files when necessary

This commit is contained in:
Julien Calixte
2024-09-01 00:25:11 +02:00
parent b4a7571b8a
commit df25634b98
3 changed files with 43 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ export const getUserSettingsContent = async (
return null
}
const content = await getFileContent(user, repo, configFile.sha)
const content = await queryFileContent(user, repo, configFile.sha)
if (!content) {
return null
@@ -107,7 +107,7 @@ export const getUserSettingsContent = async (
return JSON.parse(atob(content)) as UserSettings
}
export const getFileContent = async (
export const queryFileContent = async (
user: string,
repo: string,
sha: string