mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
added support for 0 based sequential ids to our object db.
This commit is contained in:
parent
a0c7ccfe7c
commit
c6fa3cc02b
17 changed files with 375 additions and 29 deletions
|
@ -18,7 +18,7 @@ namespace NzbDrone.Api.RootFolders
|
|||
|
||||
Get["/"] = x => GetRootFolders();
|
||||
Post["/"] = x => AddRootFolder();
|
||||
Delete["/{id}"] = x => DeleteRootFolder((long)x.id);
|
||||
Delete["/{id}"] = x => DeleteRootFolder((int)x.id);
|
||||
}
|
||||
|
||||
private Response AddRootFolder()
|
||||
|
@ -32,7 +32,7 @@ namespace NzbDrone.Api.RootFolders
|
|||
return _rootFolderService.All().AsResponse();
|
||||
}
|
||||
|
||||
private Response DeleteRootFolder(long folderId)
|
||||
private Response DeleteRootFolder(int folderId)
|
||||
{
|
||||
_rootFolderService.Remove(folderId);
|
||||
return new Response { StatusCode = HttpStatusCode.OK };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue