mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-09 13:58:25 +02:00
fix missing hasNextPage for global assets
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user