Update ExecutionResultService.scala
Signed-off-by: Jiadong Bai <43344272+bobbai00@users.noreply.github.com>
diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionResultService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionResultService.scala
index cd56302..772fafa 100644
--- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionResultService.scala
+++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionResultService.scala
@@ -425,7 +425,7 @@
def handleResultPagination(request: ResultPaginationRequest): TexeraWebSocketEvent = {
// calculate from index (pageIndex starts from 1 instead of 0)
val from = request.pageSize * (request.pageIndex - 1)
- val latestExecutionId = getLatestExecutionId(0, 0).getOrElse(
+ val latestExecutionId = getLatestExecutionId(WorkflowIdentity(0L), 0).getOrElse(
throw new IllegalStateException("No execution is recorded")
)