Skip to content

Commit

Permalink
Fix service 'updated at' time not being updated correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanusz-r7 committed May 29, 2024
1 parent d37a825 commit 05c9878
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/msf/core/db_manager/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,10 @@ def import_filetype_detect(data)
def msf_import_timestamps(opts,obj)
obj.created_at = opts["created_at"] if opts["created_at"]
obj.created_at = opts[:created_at] if opts[:created_at]
obj.created_at = opts[:task].created_at if opts[:task]&.created_at
obj.updated_at = opts["updated_at"] ? opts["updated_at"] : obj.created_at
obj.updated_at = opts[:updated_at] ? opts[:updated_at] : obj.created_at
obj.updated_at = opts[:task].updated_at if opts[:task]&.updated_at
return obj
end

Expand Down

0 comments on commit 05c9878

Please sign in to comment.