fix: change from fetchChinaData to fetchAllChinaData method
This commit is contained in:
1 parent
a30c083750
commit
ad3b422984
1 file changed
+1
-1
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user