Added more debug info.
This commit is contained in:
parent
68dfa2e2a9
commit
43765fc674
1 changed files with 5 additions and 1 deletions
|
@ -52,8 +52,12 @@ add a new activity entry for an object
|
|||
).order('created_at DESC, id ASC').last
|
||||
|
||||
# resturn if old entry is really fresh
|
||||
puts "--- #{data[:object]} #{data[:type]} #{data[:role]} #{data[:created_by_id]} #{data[:created_at]}"
|
||||
if result
|
||||
puts "-- previos done at #{result.created_at} #{ data[:created_at] - 10.seconds } #{ data[:created_at] }"
|
||||
end
|
||||
return result if result && result.created_at.to_i >= ( data[:created_at].to_i - 12 )
|
||||
|
||||
puts "add"
|
||||
# create history
|
||||
record = {
|
||||
:o_id => data[:o_id],
|
||||
|
|
Loading…
Reference in a new issue