Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 04872519
authored
Aug 09, 2022
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
054d90ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
app/Http/Controllers/CampaignVariablesController.php
app/Models/Pivots/DictionaryCampaign.php
app/Http/Controllers/CampaignVariablesController.php
View file @
0487251
...
...
@@ -8,6 +8,7 @@ use App\Models\Pivots\GoalRetargetinglist;
use
App\Models\Tokens
;
use
App\Models\Variable
;
use
Carbon\Carbon
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Redirect
;
use
Illuminate\Support\Facades\Request
;
use
Inertia\Inertia
;
...
...
@@ -219,7 +220,7 @@ class CampaignVariablesController extends Controller
$dictionary_campaign
->
goalGoalSitelink
()
->
forExternal
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'updated_need'
=>
Carbon
::
now
(),
'
goal_sitelinks.
updated_need'
=>
Carbon
::
now
(),
]);
$dictionary_campaign
->
goalVCards
()
->
forExternal
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
...
...
app/Models/Pivots/DictionaryCampaign.php
View file @
0487251
...
...
@@ -497,7 +497,7 @@ class DictionaryCampaign extends Pivot
public
function
goalGoalSitelink
()
{
return
$this
->
hasManyThrough
(
GoalSitelink
::
class
,
GoalAdvertisement
::
class
,
'dictionary_campaign_id'
,
'goal_sitelink_id'
);
return
$this
->
hasManyThrough
(
GoalSitelink
::
class
,
GoalAdvertisement
::
class
,
'dictionary_campaign_id'
,
'
id'
,
'id'
,
'
goal_sitelink_id'
);
}
public
function
goalAdvertisementsForNotExternalForNotReserveCreate
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment