Add jwennUser to oki-api
This commit is contained in:
@@ -50,3 +50,9 @@ export async function jwennKomanteEpiTeksId(teksId) {
|
|||||||
const response = await axios.get(`${OKI_API}/komante?${query}`)
|
const response = await axios.get(`${OKI_API}/komante?${query}`)
|
||||||
return response.data
|
return response.data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function jwennUser(userId) {
|
||||||
|
const query = `_where[id]=${userId}&_where[confirmed]=true`
|
||||||
|
const response = await axios.get(`${OKI_API}/users?${query}`)
|
||||||
|
return response.data[0]
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user