Skip to content
Snippets Groups Projects
Commit 1b396aa7 authored by Daniel's avatar Daniel
Browse files

WebApp: Add checkAsync

parent c54d5139
Branches
No related merge requests found
......@@ -69,6 +69,15 @@ let converse = function ($http) {
}
class User extends Account {
async checkAsync (id) {
try {
await $http.get(`${apiUrl}/driver/${id}`)
return true
} catch (e) {
return false
}
}
pickAsync (id) {
let data = JSON.stringify({
'user_id': id
......
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