mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-04 19:22:00 +08:00
Fix build
This commit is contained in:
@@ -197,7 +197,7 @@ func toTaskInfo(info *asynq.TaskInfo, pf PayloadFormatter) *taskInfo {
|
||||
NextProcessAt: formatTimeInRFC3339(info.NextProcessAt),
|
||||
CompletedAt: formatTimeInRFC3339(info.CompletedAt),
|
||||
// TODO: Replace this with resultFormatter
|
||||
Result: defaultPayloadFormatter.FormatPayload("", info.Result),
|
||||
Result: DefaultPayloadFormatter.FormatPayload("", info.Result),
|
||||
TTL: int64(taskTTL(info).Seconds()),
|
||||
}
|
||||
}
|
||||
@@ -388,7 +388,7 @@ func toCompletedTask(ti *asynq.TaskInfo, pf PayloadFormatter) *completedTask {
|
||||
CompletedAt: ti.CompletedAt,
|
||||
TTL: int64(taskTTL(ti).Seconds()),
|
||||
// TODO: Use resultFormatter instead
|
||||
Result: defaultPayloadFormatter.FormatPayload("", ti.Result),
|
||||
Result: DefaultPayloadFormatter.FormatPayload("", ti.Result),
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -94,14 +94,14 @@ function CompletedTasksTable(props: Props & ReduxProps) {
|
||||
const [selectedIds, setSelectedIds] = useState<string[]>([]);
|
||||
const [activeTaskId, setActiveTaskId] = useState<string>("");
|
||||
|
||||
const handleChangePage = (
|
||||
const handlePageChange = (
|
||||
event: React.MouseEvent<HTMLButtonElement> | null,
|
||||
newPage: number
|
||||
) => {
|
||||
setPage(newPage);
|
||||
};
|
||||
|
||||
const handleChangeRowsPerPage = (
|
||||
const handleRowsPerPageChange = (
|
||||
event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
|
||||
) => {
|
||||
props.taskRowsPerPageChange(parseInt(event.target.value, 10));
|
||||
@@ -253,8 +253,8 @@ function CompletedTasksTable(props: Props & ReduxProps) {
|
||||
inputProps: { "aria-label": "rows per page" },
|
||||
native: true,
|
||||
}}
|
||||
onChangePage={handleChangePage}
|
||||
onChangeRowsPerPage={handleChangeRowsPerPage}
|
||||
onPageChange={handlePageChange}
|
||||
onRowsPerPageChange={handleRowsPerPageChange}
|
||||
ActionsComponent={TablePaginationActions}
|
||||
className={classes.pagination}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user