Skip to content

Commit

Permalink
fix: allow empty body when unlinking manually linked files
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Dec 24, 2023
1 parent 1021962 commit 05f770b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/API/v3/Controllers/FileController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ public ActionResult LinkMultipleEpisodesToFile([FromRoute] int fileID, [FromBody
/// <param name="body">Optional. The body.</param>
/// <returns></returns>
[HttpDelete("{fileID}/Link")]
public ActionResult UnlinkMultipleEpisodesFromFile([FromRoute] int fileID, [FromBody] File.Input.UnlinkEpisodesBody body)
public ActionResult UnlinkMultipleEpisodesFromFile([FromRoute] int fileID, [FromBody(EmptyBodyBehavior = EmptyBodyBehavior.Allow)] File.Input.UnlinkEpisodesBody body)
{
var file = RepoFactory.VideoLocal.GetByID(fileID);
if (file == null)
Expand Down

0 comments on commit 05f770b

Please sign in to comment.