Colab and any fix

This commit is contained in:
Ash
2023-02-01 23:55:01 +04:00
parent bd338518a0
commit f96bc01d9b
5 changed files with 44 additions and 19 deletions

View File

@@ -249,8 +249,8 @@ app.post("/getchat", jsonParser, function(request, response){
});
app.post("/getstatus", jsonParser, function(request, response_getstatus = response){
if(!request.body) return response_getstatus.sendStatus(400);
if(is_colab === true){
api_server = '127.0.0.1:5000';
if(is_colab == true){
api_server = String(process.env.colaburl).trim();
}else{
api_server = request.body.api_server;
}