DEV: only use the records that are auto populated by the task. (#14360)

Previously, it was using existing user and topic records to generate random posts.
This commit is contained in:
Vinoth Kannan
2021-09-17 09:47:32 +05:30
committed by GitHub
parent 903439a14e
commit 2c7cc40be3
2 changed files with 9 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ module DiscourseDev
end
def self.random
super(::User)
super(::User, use_existing_records: false)
end
def set_random_avatar(user)