bugfix: validate_queue method - map then sort, instead of sort then map (#1187)

Co-authored-by: Sahil Mittal <sahil.mittal@snapdeal.com>
This commit is contained in:
Sahil Mittal 2020-09-02 20:51:40 +05:30 committed by GitHub
parent cb6fc9fb2e
commit 17968e6d3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ class RoundRobin::ManageService
end
def validate_queue?
return true if inbox.inbox_members.map(&:user_id).sort == queue.sort.map(&:to_i)
return true if inbox.inbox_members.map(&:user_id).sort == queue.map(&:to_i).sort
end
def queue