mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 13:44:33 -04:00
Add shows in episode watch status change events
This commit is contained in:
parent
1e8316e16d
commit
fe9aa865f9
@ -524,7 +524,7 @@ public class WatchStatusRepository(
|
|||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
User = await users.Get(ret.UserId),
|
User = await users.Get(ret.UserId),
|
||||||
Resource = await episodes.Get(ret.EpisodeId),
|
Resource = await episodes.Get(episodeId, new(nameof(Episode.Show))),
|
||||||
Status = ret.Status,
|
Status = ret.Status,
|
||||||
WatchedTime = ret.WatchedTime,
|
WatchedTime = ret.WatchedTime,
|
||||||
WatchedPercent = ret.WatchedPercent,
|
WatchedPercent = ret.WatchedPercent,
|
||||||
@ -546,7 +546,7 @@ public class WatchStatusRepository(
|
|||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
User = await users.Get(userId),
|
User = await users.Get(userId),
|
||||||
Resource = await episodes.Get(episodeId),
|
Resource = await episodes.Get(episodeId, new(nameof(Episode.Show))),
|
||||||
AddedDate = DateTime.UtcNow,
|
AddedDate = DateTime.UtcNow,
|
||||||
Status = WatchStatus.Deleted,
|
Status = WatchStatus.Deleted,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user