Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
217
Issues
217
List
Boards
Labels
Service Desk
Milestones
Merge Requests
32
Merge Requests
32
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
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
Commits
12ec947c
Commit
12ec947c
authored
1 hour ago
by
Guy Thouret
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore) Linting recent changes -
#590
parent
343a3648
feat/588-state-on-user
1 merge request
!285
Reward Factors for User Activity
Pipeline
#81783180
failed with stages
in 10 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
UserStateChange.php
Core/Queue/Runners/UserStateChange.php
+2
-2
Time.php
Core/Time.php
+2
-1
No files found.
Core/Queue/Runners/UserStateChange.php
View file @
12ec947c
...
...
@@ -16,9 +16,9 @@ class UserStateChange implements Interfaces\QueueRunner
$client
=
Queue\Client
::
Build
();
$client
->
setQueue
(
'UserStateChanges'
)
->
receive
(
function
(
$data
)
{
$data
=
$data
->
getData
();
$data
=
$data
->
getData
();
$event
=
isset
(
$data
[
'estimate'
])
?
'user_state_change_estimate'
:
'user_state_change'
;
Dispatcher
::
trigger
(
$event
,
$data
[
'user_state_change'
][
'state'
],
$data
[
'user_state_change'
]);
});
});
}
}
This diff is collapsed.
Click to expand it.
Core/Time.php
View file @
12ec947c
...
...
@@ -38,8 +38,9 @@ class Time
/* Exclusive not inclusive range should ignore first interval value */
if
(
$startTs
<
$endTs
)
if
(
$startTs
<
$endTs
)
{
$startTs
+=
$interval
;
}
$intervals
=
[];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment