Browse Source

Changed the method to get the name from AMQP

Jean Sumara 5 years ago
parent
commit
04d6e21673
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/FTTHBundle/Service/OnuExportService.php

+ 1 - 3
src/FTTHBundle/Service/OnuExportService.php

@@ -36,15 +36,13 @@ class OnuExportService
                     'format' => $format,
                     'filename' => $filename,
                     'notificationId' => $notification['id'],
-                    'endpointBase' => 'https://'.getenv('HOST_BASE'),
-                    'endpointOnus' => 'https://'.getenv('HOST_FTTH')."/api/onus-export",
                     'params' => [
                         'client_id' => getenv('OAUTH_CLIENT_ID'),
                         'client_secret' => getenv('OAUTH_CLIENT_SECRET'),
                         'grant_type' => 'client_credentials'
                     ]
                 ]);
-                $amqpChannel->basic_publish(new AMQPMessage((string) $msgBody), '','export.ftth');
+                $amqpChannel->basic_publish(new AMQPMessage((string) $msgBody), '', getenv('FTTH_EXPORT'));
             }else{
                 if ($this->container->has('monolog.logger.webservice')) {
                     $this->container->get('monolog.logger.webservice')->error("Can't create a notification in Base");