Update lib/scrapper.js
Browse files- lib/scrapper.js +2 -2
lib/scrapper.js
CHANGED
@@ -9,10 +9,10 @@ const ParametersUrl = function (parameters) {
|
|
9 |
return WhatDoesThis
|
10 |
};
|
11 |
|
12 |
-
const Copilot2Trip = async (
|
13 |
try {
|
14 |
const url = ParametersUrl("ai/copilot2trip");
|
15 |
-
const response = await axios.get(url);
|
16 |
if (typeof response.data === "object") {
|
17 |
response.data.author = "xtdevs";
|
18 |
return response.data;
|
|
|
9 |
return WhatDoesThis
|
10 |
};
|
11 |
|
12 |
+
const Copilot2Trip = async (query) => {
|
13 |
try {
|
14 |
const url = ParametersUrl("ai/copilot2trip");
|
15 |
+
const response = await axios.get(url, q: query);
|
16 |
if (typeof response.data === "object") {
|
17 |
response.data.author = "xtdevs";
|
18 |
return response.data;
|