1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

google analytics key (#3617)

This commit is contained in:
David Bomba 2020-04-10 21:56:02 +10:00 committed by GitHub
parent 563d41c83a
commit a4c190a920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,9 @@ class StoreCompanyRequest extends Request
{
$input = $this->all();
if(array_key_exists('google_analytics_url', $input))
$input['google_analytics_key'] = $input['google_analytics_url'];
$company_settings = CompanySettings::defaults();
if (array_key_exists('settings', $input) && !empty($input['settings'])) {

View File

@ -110,7 +110,8 @@ class CompanyTransformer extends EntityTransformer
'archived_at' => (int)$company->deleted_at,
'created_at' =>(int)$company->created_at,
'slack_webhook_url' => (string)$company->slack_webhook_url,
'google_analytics_url' => (string)$company->google_analytics_key, //@todo need to change this to google_analytics_key
'google_analytics_url' => (string)$company->google_analytics_key, //@deprecate
'google_analytics_key' => (string)$company->google_analytics_key,
];
}