@@ 6299,6 6299,12 @@ func (r *queryResolver) GetAdminOrganizations(ctx context.Context, input *model.
return nil, nil
}
+ if input.After != nil && input.Before != nil {
+ validator.Error(lt.Translate("You can not send both after and before cursors")).
+ WithCode(valid.ErrValidationGlobalCode)
+ return nil, nil
+ }
+
opts := &database.FilterOptions{
Filter: sq.And{},
OrderBy: "o.id DESC",
@@ 6314,12 6320,6 @@ func (r *queryResolver) GetAdminOrganizations(ctx context.Context, input *model.
}
}
- if input.After != nil && input.Before != nil {
- validator.Error(lt.Translate("You can not send both after and before cursors")).
- WithCode(valid.ErrValidationGlobalCode)
- return nil, nil
- }
-
if input.OwnerID != nil {
opts.Filter = sq.And{
opts.Filter,