mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Done #678
This commit is contained in:
parent
cb11267fd2
commit
9f41a511cd
9 changed files with 21 additions and 10 deletions
|
@ -74,7 +74,7 @@ namespace PlexRequests.Core.Queue
|
|||
RequestQueue.Insert(queue);
|
||||
}
|
||||
|
||||
public async Task QueueItemAsync(RequestedModel request, string id, RequestType type, FaultType faultType)
|
||||
public async Task QueueItemAsync(RequestedModel request, string id, RequestType type, FaultType faultType, string description = null)
|
||||
{
|
||||
//Ensure there is not a duplicate queued item
|
||||
var existingItem = await RequestQueue.CustomAsync(async connection =>
|
||||
|
@ -96,7 +96,8 @@ namespace PlexRequests.Core.Queue
|
|||
Type = type,
|
||||
Content = ByteConverterHelper.ReturnBytes(request),
|
||||
PrimaryIdentifier = id,
|
||||
FaultType = faultType
|
||||
FaultType = faultType,
|
||||
Message = description ?? string.Empty
|
||||
};
|
||||
await RequestQueue.InsertAsync(queue);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue