Skip to content
Snippets Groups Projects
Commit 1e9786d8 authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

added missing line in delete

parent 1f6ed966
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ public class ContactServlet extends HttpServlet {
StatementList statementList = new StatementList();
statementList.addStatement(new StatementElement("owner","=",req.getAttribute("username").toString(),"AND"));
statementList.addStatement(new StatementElement("uri","=",req.getParameter("uri"),""));
if(dataStore.getContactDao().deleteObject()) resp.setStatus(200);
if(dataStore.getContactDao().deleteObject(statementList)) resp.setStatus(200);
else resp.sendError(500,"Could not delete a contact!");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment