diff options
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r-- | common/storage/entitystore.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index f74d3df..efafe8a 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -678,9 +678,10 @@ void EntityStore::readRevisions(const QByteArray &type, const QByteArray &uid, q | |||
678 | DataStore::mainDatabase(d->transaction, type) | 678 | DataStore::mainDatabase(d->transaction, type) |
679 | .scan(uid, | 679 | .scan(uid, |
680 | [&](const QByteArray &key, const QByteArray &value) -> bool { | 680 | [&](const QByteArray &key, const QByteArray &value) -> bool { |
681 | const auto revision = DataStore::revisionFromKey(key); | 681 | const auto parsedKey = Key::fromDisplayByteArray(key); |
682 | const auto revision = parsedKey.revision().toQint64(); | ||
682 | if (revision >= startingRevision) { | 683 | if (revision >= startingRevision) { |
683 | callback(DataStore::uidFromKey(key), revision, Sink::EntityBuffer(value.data(), value.size())); | 684 | callback(parsedKey.identifier().toDisplayByteArray(), revision, Sink::EntityBuffer(value.data(), value.size())); |
684 | } | 685 | } |
685 | return true; | 686 | return true; |
686 | }, | 687 | }, |