Fakultas Ilmu Komputer UI

Commit 2048883b authored by Sean Zeliq Urian's avatar Sean Zeliq Urian
Browse files

[CHORUS] remove debuging info

parent 1ef209ac
Pipeline #79940 passed with stages
in 3 minutes and 40 seconds
......@@ -363,17 +363,16 @@ export default function useMainService(token: string) {
end_date: String,
ignoreDateFilterQuery: boolean
) {
let param = "?page=" + page + "&";
if (roleFilterQuery !== "Semua Peran") {
param += "is_admin=" + (roleFilterQuery.toLowerCase() === "admin") + "&";
let param = '?page=' + page + '&';
if (roleFilterQuery !== 'Semua Peran') {
param += 'is_admin=' + (roleFilterQuery.toLowerCase() === 'admin') + '&';
}
if (!ignoreDateFilterQuery) {
param += "start_date=" + start_date + "&";
param += "end_date=" + end_date;
param += 'start_date=' + start_date + '&';
param += 'end_date=' + end_date;
}
const endpointWithPaging = END_POINTS.LOGS([param]);
console.log(endpointWithPaging)
return fetchWithAuthentication(endpointWithPaging.slice(0, -1), Method.GET);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment