Update justask:fix_reports
This commit is contained in:
parent
9d14321cd1
commit
5b3b3684c9
6
Rakefile
6
Rakefile
|
@ -249,6 +249,9 @@ namespace :justask do
|
|||
r.deleted = true
|
||||
r.save
|
||||
destroyed += 1
|
||||
elsif r.user.nil?
|
||||
r.destroy
|
||||
destroyed += 1
|
||||
end
|
||||
progress.increment
|
||||
end
|
||||
|
@ -328,6 +331,9 @@ namespace :justask do
|
|||
r.deleted = true
|
||||
r.save
|
||||
destroyed_count[:report] += 1
|
||||
elsif r.user.nil?
|
||||
r.destroy
|
||||
destroyed_count[:report] += 1
|
||||
end
|
||||
progress.increment
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue