fix: change from fetchChinaData to fetchAllChinaData method

This commit is contained in:
Leon Xu committed 2022-05-04 22:36:25 -07:00
1 parent a30c083750
commit ad3b422984
1 file changed
+1 -1
+1 -1
View File
@@ -6,7 +6,7 @@ import ImageData from "../models/ImageData.js";
import ncovAbroadData from "../models/ncovAbroadData.js";
// Fetch China Data method
export const fetchChinaData = (req, res) => {
export const fetchAllChinaData = (req, res) => {
ncovChinaData.find().then(result => {
res.send(result);
}).catch(error => {