(ctx context.Context, sorts []*catalogue_dto.SortItem)
| 533 | } |
| 534 | |
| 535 | func (i *imlCatalogueModule) Sort(ctx context.Context, sorts []*catalogue_dto.SortItem) error { |
| 536 | return i.transaction.Transaction(ctx, func(ctx context.Context) error { |
| 537 | err := i.recurseUpdateSort(ctx, "", sorts) |
| 538 | if err != nil { |
| 539 | return err |
| 540 | } |
| 541 | all, err := i.catalogueService.List(ctx) |
| 542 | if err != nil { |
| 543 | return err |
| 544 | } |
| 545 | i.root = NewRoot(all) |
| 546 | return nil |
| 547 | }) |
| 548 | |
| 549 | } |
| 550 | |
| 551 | func (i *imlCatalogueModule) Search(ctx context.Context, keyword string) ([]*catalogue_dto.Item, error) { |
| 552 | all, err := i.catalogueService.List(ctx) |
nothing calls this directly
no test coverage detected