Skip to content
Snippets Groups Projects
Verified Commit 9b20640b authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Call to get senior by card.

May be integrated in future in getSeniorList.
parent 0ccc6517
No related branches found
No related tags found
2 merge requests!60New component to search senior (see #12). Enhance responsiveness and solve #10 and #11,!58Camelize data and insert react-hook-form in autocomplete.
Pipeline #12646 passed
import axios from 'axios';
import { camelizeKeys } from 'humps';
import { ResponseProps } from './ResponseProps';
export const getSeniorListByCard = async (
card: number,
): Promise<ResponseProps[]> =>
axios
.get(`/api/web/seniors/by_member_card/${card}?fields=user,id`)
.then((res) => camelizeKeys(res.data) as ResponseProps[]);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment