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

likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 7e53d0c7 fix(framework): cancel pager for tasks (#3657)
7e53d0c7 is described below

commit 7e53d0c79b607d10630f986ffd34711d39571a4e
Author: Warren Chen <[email protected]>
AuthorDate: Thu Nov 3 12:11:14 2022 +0800

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

diff --git a/services/task.go b/services/task.go
index 5bec45e5..c21acdbc 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 {

Reply via email to