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:
parent
cb6fc9fb2e
commit
17968e6d3f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue