remove onlyNonPast, 'since' parameter handled implicit on backend

This commit is contained in:
Aarni Halinen
2021-05-16 02:16:55 +03:00
parent 91acb0c337
commit 99b4e65326
8 changed files with 12 additions and 20 deletions
+2 -3
View File
@@ -11,15 +11,14 @@ 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, limit, offset,
auth, since, limit, offset,
} = options;
return {
url,
config: {
params: {
// since: onlyNonPast ? (new Date()).toISOString() : undefined,
since,
limit,
offset,
},