add player rating to the db
This commit is contained in:
@@ -186,8 +186,7 @@ class MatchmakingService
|
||||
# Adds the user to the queue and immediately tries to pair them.
|
||||
# The result (match or timeout) is delivered asynchronously via
|
||||
# MatchmakingChannel broadcasts.
|
||||
def enqueue(user_id, rating: nil)
|
||||
rating ||= config.default_rating
|
||||
def enqueue(user_id, rating:)
|
||||
results = call_pair_script("enqueue", extra: [ user_id, rating ])
|
||||
process_results(results)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user