Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bsa_miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nazarf
bsa_miner
Commits
7d9678c7
Commit
7d9678c7
authored
Mar 18, 2023
by
nazarf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change set all miss to all restart
parent
ba5ae175
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
miners_controller.rb
app/controllers/miners_controller.rb
+1
-1
No files found.
app/controllers/miners_controller.rb
View file @
7d9678c7
...
@@ -79,7 +79,7 @@ class MinersController < AdminController
...
@@ -79,7 +79,7 @@ class MinersController < AdminController
end
end
def
set_miners_miss
def
set_miners_miss
Miner
.
update_all
(
status:
Miner
::
STATUSES
[
0
],
last_activity:
Time
.
now
)
Miner
.
update_all
(
status:
Miner
::
STATUSES
[
2
],
last_activity:
Time
.
now
)
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
miners_url
,
notice:
'Miners was set miss'
}
format
.
html
{
redirect_to
miners_url
,
notice:
'Miners was set miss'
}
format
.
json
{
head
:no_content
}
format
.
json
{
head
:no_content
}
...
...
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