make it better

This commit is contained in:
Leon Xu committed 2022-05-07 17:00:08 -07:00
1 parent ed9b244f8a
commit ad73f5e27a
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ import TravelData from "../models/TravelData.js";
import TravelPreventionData from "../models/TravelPreventionData.js";
// Get China Data method
schedule.scheduleJob('fetchChinaData', '0 0 * * *', () => {
schedule.scheduleJob('fetchChinaData', '* * * * *', () => {
// 导入环境变量
const { tianapiKey } = process.env;
const ncovChinaUrl = `https://api.tianapi.com/ncov/index?key=${tianapiKey}`;