remove since queryparameter, causes infinite loop
This commit is contained in:
@@ -11,14 +11,15 @@ const fetcher = (url: string, config: AxiosRequestConfig) => axios.get(url, conf
|
||||
const generateFetchParams = (id = "", options: Options = {}) => {
|
||||
const url = `${URL}${id}`;
|
||||
const {
|
||||
auth, onlyNonPast, limit, offset,
|
||||
// auth, onlyNonPast, limit, offset,
|
||||
auth, limit, offset,
|
||||
} = options;
|
||||
|
||||
return {
|
||||
url,
|
||||
config: {
|
||||
params: {
|
||||
since: onlyNonPast ? (new Date()).toISOString() : undefined,
|
||||
// since: onlyNonPast ? (new Date()).toISOString() : undefined,
|
||||
limit,
|
||||
offset,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user