mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
Code revie
This commit is contained in:
@@ -151,7 +151,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.LogDebug("Scheduled Task history file {path} is empty. Skipping deserialization.", path);
|
||||
_logger.LogDebug("Scheduled Task history file {Path} is empty. Skipping deserialization.", path);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -577,8 +577,8 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(path));
|
||||
|
||||
using FileStream stream = File.OpenWrite(path);
|
||||
JsonSerializer.SerializeAsync(stream, triggers, _jsonOptions);
|
||||
var json = JsonSerializer.Serialize(triggers, _jsonOptions);
|
||||
File.WriteAllText(path, json);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user