summaryrefslogtreecommitdiffstats
path: root/common/domain/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r--common/domain/event.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp
index 38872f9..9759fc3 100644
--- a/common/domain/event.cpp
+++ b/common/domain/event.cpp
@@ -38,7 +38,7 @@ ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query,
38{ 38{
39 QVector<QByteArray> keys; 39 QVector<QByteArray> keys;
40 if (query.propertyFilter.contains("uid")) { 40 if (query.propertyFilter.contains("uid")) {
41 Index uidIndex("index.uid", transaction); 41 Index uidIndex("event.index.uid", transaction);
42 uidIndex.lookup(query.propertyFilter.value("uid").toByteArray(), [&](const QByteArray &value) { 42 uidIndex.lookup(query.propertyFilter.value("uid").toByteArray(), [&](const QByteArray &value) {
43 keys << value; 43 keys << value;
44 }, 44 },
@@ -54,8 +54,7 @@ void TypeImplementation<Event>::index(const Event &type, Akonadi2::Storage::Tran
54{ 54{
55 const auto uid = type.getProperty("uid"); 55 const auto uid = type.getProperty("uid");
56 if (uid.isValid()) { 56 if (uid.isValid()) {
57 Index uidIndex("index.uid", transaction); 57 Index("event.index.uid", transaction).add(uid.toByteArray(), type.identifier());
58 uidIndex.add(uid.toByteArray(), type.identifier());
59 } 58 }
60} 59}
61 60