Fix build

This commit is contained in:
Ken Hibino
2021-10-22 09:56:50 -07:00
parent 4110955aab
commit fa35f18716
2 changed files with 6 additions and 6 deletions

View File

@@ -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),
}
}

View File

@@ -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}
/>