mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-12-23 04:31:06 +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;
|
||||
|
||||
// @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,
|
||||
|
|
Loading…
Reference in a new issue