fix rest api getLatencyToUsers parameter
This commit is contained in:
parent
812cedb0e1
commit
e5afb83f81
|
|
@ -148,8 +148,7 @@ export const getSessions = () => {
|
|||
|
||||
export const getLatencyToUsers = (currentUserId, participantIds) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const options = { user_ids: participantIds}
|
||||
apiFetch(`/users/${currentUserId}/latencies?${new URLSearchParams(options)}`)
|
||||
apiFetch(`/users/${currentUserId}/latencies?user_ids[]=${participantIds}`)
|
||||
.then(response => resolve(response))
|
||||
.catch(error => reject(error))
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue