From f12ab80cd63b0a25080913bd7e9fa88a190007d5 Mon Sep 17 00:00:00 2001 From: Ronni Skansing Date: Thu, 30 Oct 2025 23:26:01 +0100 Subject: [PATCH] fix missing hasNextPage for global assets Signed-off-by: Ronni Skansing --- backend/repository/asset.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/repository/asset.go b/backend/repository/asset.go index 8326296..de16c05 100644 --- a/backend/repository/asset.go +++ b/backend/repository/asset.go @@ -109,6 +109,12 @@ func (r *Asset) GetAllByGlobalContext( if dbRes.Error != nil { return nil, dbRes.Error } + + hasNextPage, err := useHasNextPage(db, database.ASSET_TABLE, queryArgs, assetAllowedColumns...) + if err != nil { + return result, errs.Wrap(err) + } + result.HasNextPage = hasNextPage for _, dbModel := range dbModels { result.Rows = append(result.Rows, ToAsset(dbModel)) }