From 85829503c5c3a84ffc11f38a8d30789297928102 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Wed, 13 Jul 2022 17:54:04 +0200 Subject: [PATCH] fix: add await --- src/utils/githubUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/githubUtils.ts b/src/utils/githubUtils.ts index 1231d4e..26c226b 100644 --- a/src/utils/githubUtils.ts +++ b/src/utils/githubUtils.ts @@ -53,7 +53,7 @@ export const fetchIssues = async() => { if ('pull_request' in issue) continue; // @ts-expect-error it works - addToDb.run([ + await addToDb.run([ issue.repository_url.replace('https://api.github.com/repos/', ''), issue.title, issue.number, @@ -98,7 +98,7 @@ export const fetchPullRequests = async() => { for (const pull of res) { // @ts-expect-error it works - addToDb.run([ + await addToDb.run([ pull.html_url.replace('https://github.com/', '').replace(`/pull/${pull.number}`, ''), pull.title, pull.number,