Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-05-20 18:47:50 -07:00
parent 8bf7be0c0d
commit 0c5168b5c6
17 changed files with 324 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ func (r *viewerResolver) SignableDocuments(ctx context.Context, obj *types.Viewe
Field: coredata.DocumentOrderFieldCreatedAt,
Direction: page.OrderDirectionDesc,
}
if orderBy != nil {
pageOrderBy = page.OrderBy[coredata.DocumentOrderField]{
Field: orderBy.Field,
@@ -110,6 +111,7 @@ func (r *viewerResolver) ApprovableDocuments(ctx context.Context, obj *types.Vie
Field: coredata.DocumentOrderFieldCreatedAt,
Direction: page.OrderDirectionDesc,
}
if orderBy != nil {
pageOrderBy = page.OrderBy[coredata.DocumentOrderField]{
Field: orderBy.Field,