Skip to content

Commit

Permalink
PRESIDECMS-2715 code comment on some odd looking code
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Sep 21, 2023
1 parent a8cde8a commit 613c2ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/services/taskmanager/AdHocTaskManagerService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ component displayName="Ad-hoc Task Manager Service" {
return $getPresideObject( "taskmanager_adhoc_task_log_line" ).selectData(
selectFields = [ "ts", "severity", "line" ]
, orderby = "id"
, maxRows = 1000000
, maxRows = arguments.fetchAfterLines ? 1000000 : 0 // impossibly high number. Forcing startRow to work without really wanting a max rows
, startRow = arguments.fetchAfterLines + 1
, filter = { task=arguments.taskId }
);
Expand Down
2 changes: 1 addition & 1 deletion system/services/taskmanager/TaskManagerService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ component displayName="Task Manager Service" {
return $getPresideObject( "taskmanager_task_history_log_line" ).selectData(
selectFields = [ "ts", "severity", "line" ]
, orderby = "id"
, maxRows = 1000000
, maxRows = arguments.fetchAfterLines ? 1000000 : 0 // impossibly high number. Forcing startRow to work without really wanting a max rows
, startRow = arguments.fetchAfterLines + 1
, filter = { history=arguments.historyId }
);
Expand Down

0 comments on commit 613c2ed

Please sign in to comment.