Skip to content

Commit e62010c

Browse files
authored
Merge pull request rapid7#19780 from adfoster-r7/ensure-module-details-are-marked-as-ready
Ensure module details are marked as ready
2 parents aa8cf01 + a422d06 commit e62010c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/msf/core/db_manager/module_cache.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,16 @@ def insert_all(modules)
408408
end
409409
end
410410

411-
# 3) Insert all of the associations
411+
# 3) Insert the child associations
412412
associations.each do |association_clazz, entries|
413413
next if entries.empty?
414414

415415
association_clazz.insert_all!(entries)
416416
end
417417

418+
# 4) Mark the parent models as ready - to avoid repopulating the cache again
419+
Mdm::Module::Detail.where(id: module_detail_ids).update_all(ready: true)
420+
418421
nil
419422
end
420423
end

0 commit comments

Comments
 (0)