SAAS-502: Analyzer -> Set the station id and domain in the cloud object's metadata

Set the domain name in the cloud object's metadata
This commit is contained in:
drigato 2014-11-27 16:54:22 -05:00
parent 92feacd46f
commit 432245b18e
4 changed files with 14 additions and 5 deletions

View file

@ -89,6 +89,11 @@ class Application_Model_RabbitMq
$data['original_filename'] = $originalFilename;
$data['callback_url'] = $callbackUrl;
$data['api_key'] = $apiKey;
// Pass station name to the analyzer so we can set it with the file's metadata
// before uploading it to the cloud. This isn't a requirement for cloud storage,
// but put there as a safeguard, since all Airtime Pro stations will share the
// same bucket.
$data['station_domain'] = $stationDomain = Application_Model_Preference::GetStationName();
$jsonData = json_encode($data);
self::sendMessage($exchange, 'topic', false, $jsonData, 'airtime-uploads');