Add missing parts to profiles - classified delete
parent
899bcb7acd
commit
4a9282e681
|
@ -250,7 +250,7 @@ namespace OpenSim.Data.MySQL
|
||||||
string query = string.Empty;
|
string query = string.Empty;
|
||||||
|
|
||||||
query += "DELETE FROM classifieds WHERE ";
|
query += "DELETE FROM classifieds WHERE ";
|
||||||
query += "classifieduuid = ?ClasifiedId";
|
query += "classifieduuid = ?recordId";
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -260,12 +260,8 @@ namespace OpenSim.Data.MySQL
|
||||||
|
|
||||||
using (MySqlCommand cmd = new MySqlCommand(query, dbcon))
|
using (MySqlCommand cmd = new MySqlCommand(query, dbcon))
|
||||||
{
|
{
|
||||||
cmd.Parameters.AddWithValue("?ClassifiedId", recordId.ToString());
|
cmd.Parameters.AddWithValue("?recordId", recordId.ToString());
|
||||||
|
cmd.ExecuteNonQuery();
|
||||||
lock(Lock)
|
|
||||||
{
|
|
||||||
cmd.ExecuteNonQuery();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,14 +126,14 @@ namespace OpenSim.Server.Handlers
|
||||||
}
|
}
|
||||||
|
|
||||||
OSDMap request = (OSDMap)json["params"];
|
OSDMap request = (OSDMap)json["params"];
|
||||||
UUID classifiedId = new UUID(request["classifiedID"].AsString());
|
UUID classifiedId = new UUID(request["classifiedId"].AsString());
|
||||||
|
|
||||||
OSDMap res = new OSDMap();
|
if(Service.ClassifiedDelete(classifiedId))
|
||||||
res["result"] = OSD.FromString("success");
|
return true;
|
||||||
response.Result = res;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
|
|
||||||
|
response.Error.Code = ErrorCode.InternalError;
|
||||||
|
response.Error.Message = "data error removing record";
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ClassifiedInfoRequest(OSDMap json, ref JsonRpcResponse response)
|
public bool ClassifiedInfoRequest(OSDMap json, ref JsonRpcResponse response)
|
||||||
|
|
Loading…
Reference in New Issue