Fix scene marker sort by scene updated SQL error (#1777)

This commit is contained in:
WithoutPants
2021-09-27 12:26:38 +10:00
committed by GitHub
parent be94e52f21
commit b957a87a78
2 changed files with 21 additions and 3 deletions

View File

@@ -68,6 +68,21 @@ func TestMarkerCountByTagID(t *testing.T) {
})
}
func TestMarkerQuerySortBySceneUpdated(t *testing.T) {
withTxn(func(r models.Repository) error {
sort := "scenes_updated_at"
_, _, err := r.SceneMarker().Query(nil, &models.FindFilterType{
Sort: &sort,
})
if err != nil {
t.Errorf("Error querying scene markers: %s", err.Error())
}
return nil
})
}
// TODO Update
// TODO Destroy
// TODO Find