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
171
Issues
171
List
Boards
Labels
Service Desk
Milestones
Merge Requests
41
Merge Requests
41
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
3e9e42356fee01173a913c49e84838d1d35e32a5...683c8704b8940a2cbfac2b49e9a834203f81e04a
Source
683c8704b8940a2cbfac2b49e9a834203f81e04a
Select Git revision
...
Target
3e9e42356fee01173a913c49e84838d1d35e32a5
Select Git revision
Compare
Commits (2)
(feat): implemented new offsets from v2/boost/feeds
· 92748bec
Marcelo Rivera
authored
21 minutes ago
92748bec
(fix): if offset isn't cached, set it as 0
· 683c8704
Marcelo Rivera
authored
14 minutes ago
683c8704
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
campaigns.php
Controllers/api/v2/boost/fetch/campaigns.php
+4
-2
No files found.
Controllers/api/v2/boost/fetch/campaigns.php
View file @
683c8704
...
...
@@ -62,6 +62,10 @@ class campaigns implements Interfaces\Api
$cacheKey
=
Core\Session
::
getLoggedinUser
()
->
guid
.
':boost-offset-rotator:'
.
$type
;
$offset
=
$cacher
->
get
(
$cacheKey
);
if
(
!
$offset
)
{
$offset
=
0
;
}
// Options specific to newly created users (<=1 hour) and iOS users
if
(
$platform
===
'ios'
)
{
...
...
@@ -77,8 +81,6 @@ class campaigns implements Interfaces\Api
$data
=
[];
$offset
=
null
;
try
{
$result
=
$manager
->
fetch
([
'limit'
=>
$limit
,
...
...
This diff is collapsed.
Click to expand it.