Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import axios from "axios";
- export async function get(userIds){
- try{
- const response = (await axios.get(`/users?${userIds.map(id => `ID=${id}`)}`))
- if(response.successful){
- return response.data;
- }else{
- return [];
- }
- }catch(e){
- return [];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement