Browse Source

check url is not null

Stephen Wong 1 year ago
parent
commit
44c768af50
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/FisAppGraphQLAPI/ServiceProviderController.ts

+ 2 - 1
src/FisAppGraphQLAPI/ServiceProviderController.ts

@@ -41,7 +41,8 @@ export class ServiceProviderController {
 
         if (!checkServiceProvider) {
             return "No service provider found";
-        } else {
+        } else if (checkServiceProvider.url > "") { // is valid url 
+
             let sub = this.http.get(checkServiceProvider.url + query.path).subscribe(
                 x => {
                     let newResponse = {};