Skip to content

Commit

Permalink
fix: fix signalr models (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Apr 16, 2024
1 parent 83f01bd commit 5438c81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Shokofin/SignalR/Models/FileMovedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class V0 : IFileRelocationEventArgs
/// The relative path with no leading slash and directory seperators used on
/// the Shoko side.
/// </summary>
[JsonInclude, JsonPropertyName("RelativePath")]
[JsonInclude, JsonPropertyName("NewRelativePath")]
public string InternalPath { get; set; } = string.Empty;

/// <summary>
Expand Down
3 changes: 1 addition & 2 deletions Shokofin/SignalR/Models/FileRenamedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ public class V0 : IFileRelocationEventArgs
[JsonInclude, JsonPropertyName("OldFileName")]
public string PreviousFileName { get; set; } = string.Empty;


/// <inheritdoc/>
[JsonIgnore]
public int PreviousImportFolderId => ImportFolderId;

/// <inheritdoc/>
[JsonIgnore]
public string PreviousRelativePath => RelativePath[^FileName.Length] + PreviousFileName;
public string PreviousRelativePath => RelativePath[..^FileName.Length] + PreviousFileName;

/// <inheritdoc/>
[JsonIgnore]
Expand Down

0 comments on commit 5438c81

Please sign in to comment.