aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryService.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-02 18:32:22 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-02 18:32:22 -0400
commit032de931b14ded24bb1098a7eeec3d84561206e2 (patch)
tree9688d691481c63c6772dbc4b262cab61f7e3366d /MediaBrowser.Api/Library/LibraryService.cs
parent1927d0e23cfadf5ee203f4b4e9a3a306ad1b7c22 (diff)
Migrate activity db to EF Core
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryService.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs
index a54640b2f..997b1c45a 100644
--- a/MediaBrowser.Api/Library/LibraryService.cs
+++ b/MediaBrowser.Api/Library/LibraryService.cs
@@ -759,13 +759,14 @@ namespace MediaBrowser.Api.Library
{
try
{
- _activityManager.Create(new ActivityLogEntry
+ _activityManager.Create(new Jellyfin.Data.Entities.ActivityLog(
+ string.Format(_localization.GetLocalizedString("UserDownloadingItemWithValues"), user.Name, item.Name),
+ "UserDownloadingContent",
+ auth.UserId,
+ DateTime.UtcNow,
+ LogLevel.Trace)
{
- Name = string.Format(_localization.GetLocalizedString("UserDownloadingItemWithValues"), user.Name, item.Name),
- Type = "UserDownloadingContent",
ShortOverview = string.Format(_localization.GetLocalizedString("AppDeviceValues"), auth.Client, auth.Device),
- UserId = auth.UserId
-
});
}
catch