diff --git a/lib/oki-api.js b/lib/oki-api.js index 7bb4a74..8512817 100644 --- a/lib/oki-api.js +++ b/lib/oki-api.js @@ -50,3 +50,9 @@ export async function jwennKomanteEpiTeksId(teksId) { const response = await axios.get(`${OKI_API}/komante?${query}`) 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] +}