change patch to put

This commit is contained in:
2020-12-20 15:31:24 +01:00
parent f89bbd12b2
commit 681b399b6a

View File

@@ -54,7 +54,7 @@ export async function UpdateGitHubReadme(): Promise<void> {
let new_content = content.replace(old_stats_table, stats_table);
new_content = new_content.replace(old_infos_table, infos_table)
await axios.patch('https://api.github.com/repos/arthurdanjou/arthurdanjou/contents/README.md', {
await axios.put('https://api.github.com/repos/arthurdanjou/arthurdanjou/contents/README.md', {
headers: {
authorization: `Bearer ${Env.get('GITHUB_TOKEN')}`
},