SAAS-526: Change prefix from station name to station id
Done.
This commit is contained in:
parent
b094e59df3
commit
19e6f1a535
4 changed files with 18 additions and 12 deletions
|
@ -107,13 +107,16 @@ 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
|
||||
// and prefix the object name with it 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.
|
||||
// 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();
|
||||
Logging::info(BillingController::getClientCurrentAirtimeProduct());
|
||||
$data['file_prefix'] = BillingController::getClientCurrentAirtimeProduct();
|
||||
|
||||
// Each file uploaded to cloud storage is prefixed with the station's
|
||||
// hosting id.
|
||||
$clientCurrentAirtimeProduct = BillingController::getClientCurrentAirtimeProduct();
|
||||
$data['file_prefix'] = $clientCurrentAirtimeProduct["id"];
|
||||
|
||||
$jsonData = json_encode($data);
|
||||
//self::sendMessage($exchange, 'topic', false, $jsonData, 'airtime-uploads');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue