diff --git a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java index 0cc065395af11ed30ee66b04a72a5c9f6075397a..ddf611eda63106c76f026a9e7d37f4b53b3ffc8a 100644 --- a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java +++ b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java @@ -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);