diff options
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index 1bac5d9..0314997 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -145,7 +145,7 @@ void Synchronizer::createOrModify(const QByteArray &bufferType, const QByteArray | |||
145 | sinkId, bufferType, entity, *adaptorFactory, [this](const QByteArray &buffer) { enqueueCommand(Sink::Commands::CreateEntityCommand, buffer); }); | 145 | sinkId, bufferType, entity, *adaptorFactory, [this](const QByteArray &buffer) { enqueueCommand(Sink::Commands::CreateEntityCommand, buffer); }); |
146 | } else { // modification | 146 | } else { // modification |
147 | qint64 retrievedRevision = 0; | 147 | qint64 retrievedRevision = 0; |
148 | if (auto current = store().getLatest(mainDatabase, sinkId, *adaptorFactory, retrievedRevision)) { | 148 | if (auto current = EntityReaderUtils::getLatest(mainDatabase, sinkId, *adaptorFactory, retrievedRevision)) { |
149 | bool changed = false; | 149 | bool changed = false; |
150 | for (const auto &property : entity.changedProperties()) { | 150 | for (const auto &property : entity.changedProperties()) { |
151 | if (entity.getProperty(property) != current->getProperty(property)) { | 151 | if (entity.getProperty(property) != current->getProperty(property)) { |