Fixed incomplete GitHub sync (#5310)
- Added await when fetching Github data to prevent the process from exiting before saving to database Co-authored-by: Ady Beraud <a.beraud96@gmail.com>
This commit is contained in:
@ -39,8 +39,8 @@ export const fetchAndSaveGithubData = async () => {
|
||||
[],
|
||||
)) as Array<IssueNode>;
|
||||
|
||||
savePRsToDB(fetchedPRs, assignableUsers);
|
||||
saveIssuesToDB(fetchedIssues, assignableUsers);
|
||||
await savePRsToDB(fetchedPRs, assignableUsers);
|
||||
await saveIssuesToDB(fetchedIssues, assignableUsers);
|
||||
|
||||
console.log('data synched!');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user