Fix movies sort by start/end air date on items routes

This commit is contained in:
Zoe Roux 2024-02-27 00:06:37 +01:00
parent fc7926c2cc
commit c14c0a6af5

View File

@ -19,6 +19,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq; using System.Linq;
using EntityFrameworkCore.Projectables; using EntityFrameworkCore.Projectables;
using Kyoo.Abstractions.Controllers; using Kyoo.Abstractions.Controllers;
@ -118,6 +119,14 @@ namespace Kyoo.Abstractions.Models
/// <inheritdoc /> /// <inheritdoc />
public Image? Logo { get; set; } public Image? Logo { get; set; }
[SerializeIgnore]
[Column("air_date")]
public DateTime? StartAir => AirDate;
[SerializeIgnore]
[Column("air_date")]
public DateTime? EndAir => AirDate;
/// <summary> /// <summary>
/// A video of a few minutes that tease the content. /// A video of a few minutes that tease the content.
/// </summary> /// </summary>