Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
173
Issues
173
List
Boards
Labels
Service Desk
Milestones
Merge Requests
43
Merge Requests
43
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
843b09fcbf0c73da10cb24e5cd4b262e51aa3c41...c1da061f0db7232747800e3c6f352f68513797fa
Source
c1da061f0db7232747800e3c6f352f68513797fa
Select Git revision
...
Target
843b09fcbf0c73da10cb24e5cd4b262e51aa3c41
Select Git revision
Compare
Commits (2)
(feat): check if entity exists before mapping
· f151d290
Marcelo Rivera
authored
15 minutes ago
f151d290
(fix): send urn vs string when resolving boosted entity
· c1da061f
Marcelo Rivera
authored
12 minutes ago
c1da061f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BoostCampaignResolverDelegate.php
Core/Entities/Delegates/BoostCampaignResolverDelegate.php
+2
-2
BoostGuidResolverDelegate.php
Core/Entities/Delegates/BoostGuidResolverDelegate.php
+1
-1
No files found.
Core/Entities/Delegates/BoostCampaignResolverDelegate.php
View file @
c1da061f
...
...
@@ -75,11 +75,11 @@ class BoostCampaignResolverDelegate implements ResolverDelegate
*/
public
function
map
(
$urn
,
$campaign
)
{
if
(
!
$campaign
->
getEntityUrns
())
{
if
(
!
$campaign
||
!
$campaign
->
getEntityUrns
())
{
return
null
;
}
$entity
=
$this
->
resolver
->
setOpts
([
'ignoreAcl'
=>
true
])
->
single
(
$campaign
->
getEntityUrns
()[
0
]
);
$entity
=
$this
->
resolver
->
setOpts
([
'ignoreAcl'
=>
true
])
->
single
(
new
Urn
(
$campaign
->
getEntityUrns
()[
0
])
);
$entity
->
boost
=
true
;
$entity
->
boosted_guid
=
$campaign
->
getGuid
();
$entity
->
urn
=
$campaign
->
getUrn
();
...
...
This diff is collapsed.
Click to expand it.
Core/Entities/Delegates/BoostGuidResolverDelegate.php
View file @
c1da061f
...
...
@@ -77,7 +77,7 @@ class BoostGuidResolverDelegate implements ResolverDelegate
*/
public
function
map
(
$urn
,
$entity
)
{
$boostedEntity
=
$entity
->
getEntity
()
;
$boostedEntity
=
$entity
?
$entity
->
getEntity
()
:
null
;
if
(
$boostedEntity
)
{
$boostedEntity
->
boosted
=
true
;
...
...
This diff is collapsed.
Click to expand it.