mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-26 00:06:13 +08:00
(ui): Fix parseDuration helper
This commit is contained in:
@@ -31,6 +31,12 @@ export function getMetricsAsync(endTime: number, duration: number) {
|
||||
return async (dispatch: Dispatch<MetricsActionTypes>) => {
|
||||
dispatch({ type: GET_METRICS_BEGIN });
|
||||
try {
|
||||
console.log(
|
||||
"DEBUG: fetching with endtime=",
|
||||
endTime,
|
||||
" duration=",
|
||||
duration
|
||||
);
|
||||
const response = await getMetrics(endTime, duration);
|
||||
dispatch({ type: GET_METRICS_SUCCESS, payload: response });
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user