fix: add await

This commit is contained in:
xHyroM 2022-07-13 17:54:04 +02:00
parent 8337681e99
commit 85829503c5

View file

@ -53,7 +53,7 @@ export const fetchIssues = async() => {
if ('pull_request' in issue) continue; if ('pull_request' in issue) continue;
// @ts-expect-error it works // @ts-expect-error it works
addToDb.run([ await addToDb.run([
issue.repository_url.replace('https://api.github.com/repos/', ''), issue.repository_url.replace('https://api.github.com/repos/', ''),
issue.title, issue.title,
issue.number, issue.number,
@ -98,7 +98,7 @@ export const fetchPullRequests = async() => {
for (const pull of res) { for (const pull of res) {
// @ts-expect-error it works // @ts-expect-error it works
addToDb.run([ await addToDb.run([
pull.html_url.replace('https://github.com/', '').replace(`/pull/${pull.number}`, ''), pull.html_url.replace('https://github.com/', '').replace(`/pull/${pull.number}`, ''),
pull.title, pull.title,
pull.number, pull.number,