randydev commited on
Commit
d2aec6c
·
verified ·
1 Parent(s): c864fca

Update lib/scrapper.js

Browse files
Files changed (1) hide show
  1. 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 (q) => {
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;