Commit e0223e81 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Fix on publish service

parent 12c0e8dc
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -250,7 +250,6 @@ class PublishServiceOperations(Resource):
                                                                  "api_supp_feats": 1,
                                                                  "pub_api_path": 1,
                                                                  "ccf_id": 1})

            if serviceapidescription_old is None:
                current_app.logger.error(service_api_not_found_message)
                return not_found_error(detail="Service API not existing", cause="Service API id not found")
@@ -288,10 +287,18 @@ class PublishServiceOperations(Resource):
            if response.status_code == 200:
                RedisEvent("SERVICE_API_UPDATE",
                           service_api_descriptions=[service_api_description_updated]).send_event()
                current_app.logger.debug("1")
                current_app.logger.debug(serviceapidescription_old)
                my_service_api = dict_to_camel_case(serviceapidescription_old)
                current_app.logger.debug("2")
                current_app.logger.debug(my_service_api)
                my_service_api = clean_empty(my_service_api)
                current_app.logger.debug("3")
                current_app.logger.debug(my_service_api)
                my_service_api_old = ServiceAPIDescription.from_dict(
                    my_service_api)
                current_app.logger.debug("4")
                current_app.logger.debug(my_service_api)
                self.send_events_on_update(
                    service_api_id,
                    my_service_api_old,