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.deleted = true
|
||||||
r.save
|
r.save
|
||||||
destroyed += 1
|
destroyed += 1
|
||||||
|
elsif r.user.nil?
|
||||||
|
r.destroy
|
||||||
|
destroyed += 1
|
||||||
end
|
end
|
||||||
progress.increment
|
progress.increment
|
||||||
end
|
end
|
||||||
|
@ -328,6 +331,9 @@ namespace :justask do
|
||||||
r.deleted = true
|
r.deleted = true
|
||||||
r.save
|
r.save
|
||||||
destroyed_count[:report] += 1
|
destroyed_count[:report] += 1
|
||||||
|
elsif r.user.nil?
|
||||||
|
r.destroy
|
||||||
|
destroyed_count[:report] += 1
|
||||||
end
|
end
|
||||||
progress.increment
|
progress.increment
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue