You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/11/08 07:30:44 UTC

[incubator-devlake] branch release-v0.14 updated: fix(framework): cancel pager for tasks (#3698)

This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch release-v0.14
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.14 by this push:
     new 6e4e7e53 fix(framework): cancel pager for tasks (#3698)
6e4e7e53 is described below

commit 6e4e7e5368d8a8d6ccc4d672c1c7b36d14237dbe
Author: Warren Chen <yi...@merico.dev>
AuthorDate: Tue Nov 8 15:30:39 2022 +0800

    fix(framework): cancel pager for tasks (#3698)
---
 services/task.go | 2 --
 1 file changed, 2 deletions(-)

diff --git a/services/task.go b/services/task.go
index aa3739c5..21d2d8c0 100644
--- a/services/task.go
+++ b/services/task.go
@@ -183,8 +183,6 @@ func GetTasks(query *TaskQuery) ([]models.Task, int64, errors.Error) {
 		return nil, 0, errors.Convert(err)
 	}
 
-	db = processDbClausesWithPager(db, query.PageSize, query.Page)
-
 	tasks := make([]models.Task, 0)
 	err = db.Find(&tasks).Error
 	if err != nil {