SE-8-2021 / backend

The backend of 2021 SE class group 8, inherited from the 2020 project.
https://pvs.xcc.tw
MIT License
0 stars 4 forks source link

Fix: Prevent getting issues/pull requests from GitHub failed #34

Closed jn2657 closed 2 years ago

jn2657 commented 2 years ago

Description

Sometimes when the GitHub API is called, it will return null because of some unknown reasons. Especially the issues and pull requests, both kinds of data get from GitHub and send it to the frontend directly instead of storing in database. To avoid this situation, i make the functions of getting issues/pull requests execute again when the results are null.