Fixed selling items on flea not informing client item has been listed
This commit is contained in:
@@ -450,7 +450,7 @@ public class RagfairController
|
||||
var typeOfOffer = GetOfferType(offerRequest);
|
||||
if (typeOfOffer == FleaOfferType.UNKNOWN)
|
||||
{
|
||||
return _httpResponseUtil.AppendErrorToOutput(output, "Unknown offer type, cannot list item on flea");
|
||||
return _httpResponseUtil.AppendErrorToOutput(output, $"Unknown offer type: {typeOfOffer}, cannot list item on flea");
|
||||
}
|
||||
|
||||
switch (typeOfOffer)
|
||||
@@ -463,7 +463,7 @@ public class RagfairController
|
||||
return CreatePackOffer(sessionID, offerRequest, fullProfile, output);
|
||||
case FleaOfferType.UNKNOWN:
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
return _httpResponseUtil.AppendErrorToOutput(output, $"Unknown offer type: {typeOfOffer}, cannot list item on flea");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -472,6 +472,10 @@ public class InventoryHelper(
|
||||
var insuredItems = profile.InsuredItems;
|
||||
|
||||
// We have output object, inform client of root item deletion, not children
|
||||
if (output is not null)
|
||||
{
|
||||
output.ProfileChanges[sessionId].Items.DeletedItems.Add( new Item{ Id = itemId });
|
||||
}
|
||||
|
||||
foreach (var item in itemAndChildrenToRemove)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user