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

Ask for card_number to api.

parent fa5cf4ae
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.
...@@ -4,5 +4,5 @@ import { ResponseProps } from './ResponseProps'; ...@@ -4,5 +4,5 @@ import { ResponseProps } from './ResponseProps';
export const getSeniorList = async (name: string): Promise<ResponseProps[]> => export const getSeniorList = async (name: string): Promise<ResponseProps[]> =>
axios axios
.get(`/api/web/seniors/by_name/${name}?fields=user,id`) .get(`/api/web/seniors/by_name/${name}?fields=user,id,member_card_number`)
.then((res) => camelizeKeys(res.data) as ResponseProps[]); .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