stash/api/resolver_query_find_scene_m...

16 lines
472 B
Go
Raw Normal View History

2019-02-09 12:30:49 +00:00
package api
import (
"context"
2019-02-10 02:53:08 +00:00
"github.com/stashapp/stash/models"
2019-02-09 12:30:49 +00:00
)
func (r *queryResolver) FindSceneMarkers(ctx context.Context, scene_marker_filter *models.SceneMarkerFilterType, filter *models.FindFilterType) (models.FindSceneMarkersResultType, error) {
qb := models.NewSceneMarkerQueryBuilder()
sceneMarkers, total := qb.Query(scene_marker_filter, filter)
return models.FindSceneMarkersResultType{
Count: total,
2019-02-09 12:30:49 +00:00
SceneMarkers: sceneMarkers,
}, nil
}