summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/storage/entitystore.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp
index baea388..638be6e 100644
--- a/common/storage/entitystore.cpp
+++ b/common/storage/entitystore.cpp
@@ -483,6 +483,7 @@ void EntityStore::indexLookup(const QByteArray &type, const QByteArray &property
483void EntityStore::readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback) 483void EntityStore::readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback)
484{ 484{
485 Q_ASSERT(d); 485 Q_ASSERT(d);
486 Q_ASSERT(!uid.isEmpty());
486 auto db = DataStore::mainDatabase(d->getTransaction(), type); 487 auto db = DataStore::mainDatabase(d->getTransaction(), type);
487 db.findLatest(uid, 488 db.findLatest(uid,
488 [=](const QByteArray &key, const QByteArray &value) { 489 [=](const QByteArray &key, const QByteArray &value) {