Skip to content

Commit

Permalink
Remove scene.file_mod_time
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Oct 16, 2023
1 parent f8dc75f commit 80dcd80
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion graphql/schema/types/scene.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ type Scene {
captions: [VideoCaption!]
created_at: Time!
updated_at: Time!
file_mod_time: Time @deprecated(reason: "Use files.mod_time")
"The last time play count was updated"
last_played_at: Time
"The time index a scene was left at"
Expand Down
13 changes: 0 additions & 13 deletions internal/api/resolver_model_scene.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package api
import (
"context"
"fmt"
"time"

"github.com/stashapp/stash/internal/api/loaders"
"github.com/stashapp/stash/internal/api/urlbuilders"
Expand Down Expand Up @@ -66,18 +65,6 @@ func (r *sceneResolver) getFiles(ctx context.Context, obj *models.Scene) ([]*mod
return ret, nil
}

func (r *sceneResolver) FileModTime(ctx context.Context, obj *models.Scene) (*time.Time, error) {
f, err := r.getPrimaryFile(ctx, obj)
if err != nil {
return nil, err
}

if f != nil {
return &f.ModTime, nil
}
return nil, nil
}

func (r *sceneResolver) Date(ctx context.Context, obj *models.Scene) (*string, error) {
if obj.Date != nil {
result := obj.Date.String()
Expand Down

0 comments on commit 80dcd80

Please sign in to comment.