|
|
@@ -2,8 +2,8 @@ import useSWR, { SWRResponse } from 'swr';
|
|
|
import { IUser } from '../interfaces/user';
|
|
|
import { apiGet } from '../client/util/apiv1-client';
|
|
|
|
|
|
-const userFetcher = (endpoint:string, ids:string) => {
|
|
|
- return apiGet(endpoint, { user_ids: ids }).then((response:any) => response.users);
|
|
|
+const userFetcher = (endpoint:string, userIds:string) => {
|
|
|
+ return apiGet(endpoint, { user_ids: userIds }).then((response:any) => response.users);
|
|
|
};
|
|
|
|
|
|
export const useSWRxLikerList = (likerIds?: string[]): SWRResponse<IUser[], Error> => {
|