mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-22 14:41:05 +01:00
fix: add await
This commit is contained in:
parent
8337681e99
commit
85829503c5
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue