(ctx context.Context, key string, target ...string)
| 77 | } |
| 78 | |
| 79 | func (i *imlCommitService[T]) ListLatest(ctx context.Context, key string, target ...string) ([]*Commit[T], error) { |
| 80 | list, err := i.store.Latest(ctx, key, target...) |
| 81 | if err != nil { |
| 82 | return nil, err |
| 83 | } |
| 84 | return utils.SliceToSlice(list, newCommit[T]), nil |
| 85 | } |
| 86 | |
| 87 | func (i *imlCommitService[T]) Get(ctx context.Context, uuid string) (*Commit[T], error) { |
| 88 | r, err := i.store.Get(ctx, uuid) |