Update lib/scrapper.js
Browse files- lib/scrapper.js +1 -7
lib/scrapper.js
CHANGED
@@ -38,13 +38,7 @@ const GempaBumi = async () => {
|
|
38 |
try {
|
39 |
const url = ParametersUrl("information/gempa-warning");
|
40 |
const response = await axios.get(url);
|
41 |
-
|
42 |
-
response.data.author = "xtdevs";
|
43 |
-
return response.data;
|
44 |
-
} else {
|
45 |
-
console.log("the return value was not a json object");
|
46 |
-
return null;
|
47 |
-
}
|
48 |
} catch (e) {
|
49 |
console.error("Error:", e.message);
|
50 |
return null;
|
|
|
38 |
try {
|
39 |
const url = ParametersUrl("information/gempa-warning");
|
40 |
const response = await axios.get(url);
|
41 |
+
return AuthorOriginal(response)
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
} catch (e) {
|
43 |
console.error("Error:", e.message);
|
44 |
return null;
|