mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: Prefer .pluck_first over .pluck.first (#13607)
This commit is contained in:
@ -59,7 +59,7 @@ module ImportScripts
|
||||
|
||||
def find_username_by_import_id(import_id)
|
||||
user_id = user_id_from_imported_user_id(import_id)
|
||||
User.where(id: user_id).pluck(:username).first if user_id.present?
|
||||
User.where(id: user_id).pluck_first(:username) if user_id.present?
|
||||
end
|
||||
|
||||
# Get the Discourse Category id based on the id of the source category
|
||||
|
Reference in New Issue
Block a user