diff options
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r-- | common/storage/entitystore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 8fbc2ad..020f3fd 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -459,6 +459,7 @@ void EntityStore::indexLookup(const QByteArray &type, const QByteArray &property | |||
459 | 459 | ||
460 | void EntityStore::readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback) | 460 | void EntityStore::readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback) |
461 | { | 461 | { |
462 | Q_ASSERT(d); | ||
462 | auto db = DataStore::mainDatabase(d->getTransaction(), type); | 463 | auto db = DataStore::mainDatabase(d->getTransaction(), type); |
463 | db.findLatest(uid, | 464 | db.findLatest(uid, |
464 | [=](const QByteArray &key, const QByteArray &value) { | 465 | [=](const QByteArray &key, const QByteArray &value) { |