Update justask:fix_reports

This commit is contained in:
Yuki 2015-04-30 05:21:01 +05:30
parent 9d14321cd1
commit 5b3b3684c9
1 changed files with 6 additions and 0 deletions

View File

@ -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