mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
added support for 0 based sequential ids to our object db.
This commit is contained in:
@@ -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 };
|
||||
|
Reference in New Issue
Block a user