mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:42:16 +08:00
FIX: Don't raise an error if the user is not present
This commit is contained in:
parent
e5ce2d97f6
commit
5431ae0a17
|
@ -4,7 +4,7 @@ module Jobs
|
|||
class SendAdvancedTutorialMessage < ::Jobs::Base
|
||||
def execute(args)
|
||||
user = User.find_by(id: args[:user_id])
|
||||
raise Discourse::InvalidParameters.new(:user_id) if user.nil?
|
||||
return if user.nil?
|
||||
|
||||
PostCreator.create!(
|
||||
Discourse.system_user,
|
||||
|
|
Loading…
Reference in New Issue
Block a user