DD-379 : a 404 on a Get /listing means that said listing is not in SLM, then delete it from the local store
parent
50805277b3
commit
5411f349e5
|
|
@ -351,7 +351,15 @@ public:
|
|||
|
||||
if (!isGoodStatus())
|
||||
{
|
||||
log_SLM_warning("Get /listing", getStatus(), getReason(), "", body);
|
||||
if (getStatus() == 404)
|
||||
{
|
||||
// That listing does not exist -> delete its record from the local SLM data store
|
||||
LLMarketplaceData::instance().deleteListing(mExpectedFolderId, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
log_SLM_warning("Get /listing", getStatus(), getReason(), "", body);
|
||||
}
|
||||
update_marketplace_category(mExpectedFolderId, false);
|
||||
gInventory.notifyObservers();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue