Skip to content
Snippets Groups Projects
Commit 2d5901f1 authored by Devin Alvaro's avatar Devin Alvaro
Browse files

Fix bug at picking driver

parent 1e505aba
No related merge requests found
......@@ -82,10 +82,10 @@ let converse = function ($http) {
pickAsync (id) {
let data = JSON.stringify({
'user_id': id
'user_id': this.id
})
return $http.post(`${apiUrl}/driver/${this.id}/pick`, data)
return $http.post(`${apiUrl}/driver/${id}/pick`, data)
}
}
......
......@@ -6,7 +6,6 @@
const express = require('express')
const chat = require('./chat')
const hub = require('../service/hub')
const relay = require('../service/relay')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment