diff options
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index 1a5810d..51e53c8 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -184,7 +184,11 @@ void Synchronizer::modifyIfChanged(Storage::EntityStore &store, const QByteArray | |||
184 | 184 | ||
185 | void Synchronizer::modify(const QByteArray &bufferType, const QByteArray &remoteId, const Sink::ApplicationDomain::ApplicationDomainType &entity) | 185 | void Synchronizer::modify(const QByteArray &bufferType, const QByteArray &remoteId, const Sink::ApplicationDomain::ApplicationDomainType &entity) |
186 | { | 186 | { |
187 | const auto sinkId = syncStore().resolveRemoteId(bufferType, remoteId); | 187 | const auto sinkId = syncStore().resolveRemoteId(bufferType, remoteId, false); |
188 | if (sinkId.isEmpty()) { | ||
189 | SinkWarningCtx(mLogCtx) << "Can't modify entity that is not locally existing " << remoteId; | ||
190 | return; | ||
191 | } | ||
188 | Storage::EntityStore store(mResourceContext, mLogCtx); | 192 | Storage::EntityStore store(mResourceContext, mLogCtx); |
189 | modifyIfChanged(store, bufferType, sinkId, entity); | 193 | modifyIfChanged(store, bufferType, sinkId, entity); |
190 | } | 194 | } |