Skip to content
Snippets Groups Projects
Commit fdb86d4a authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Fix bulk delete question with answers

parent 77fc96ad
Branches
Tags
No related merge requests found
......@@ -730,7 +730,7 @@ public class CouchDBDao implements IDatabaseDao {
for (final Document d : results.getResults()) {
final Question q = new Question();
q.set_id(d.getId());
q.set_rev(d.getRev());
q.set_rev(d.getJSONObject("value").getString("_rev"));
questions.add(q);
}
deleteAllAnswersWithQuestions(questions);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment