make it better
This commit is contained in:
1 parent
ed9b244f8a
commit
ad73f5e27a
2 files changed
+8
-2
No files matched your search
+1
-1
@@ -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}`;
|
||||
|
||||
Reference in new issue
Block a user