From bafd5e850996a1525142743fcefac782e18f912d Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 20 Dec 2020 17:10:50 +0100 Subject: [PATCH] working --- app/tasks/UpdateGithubReadme.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tasks/UpdateGithubReadme.ts b/app/tasks/UpdateGithubReadme.ts index 3b1db3f..9d5142c 100644 --- a/app/tasks/UpdateGithubReadme.ts +++ b/app/tasks/UpdateGithubReadme.ts @@ -59,14 +59,14 @@ export async function UpdateGitHubReadme(): Promise { }, json: { message: 'Updating recent statistics & informations', - content: Buffer.from(new_content, 'utf-8').toString('base64'), + content: Buffer.from(new_content, 'utf8').toString('base64'), sha: read_me.sha, author: { name: 'api.arthurdanjou.fr - API Automation', email: 'me@arthurdanjou.fr' } } - }) + }).catch(error => console.log(error)) } function getStatus(state: boolean): string {