Ref T118, allow to just provide an id (from backend) and set the entity on swift side

* added getDistributorForDbKey
* added fillInMissingAircraftAndLiveryEntities
* fromDbJson function adjusted
This commit is contained in:
Klaus Basan
2017-10-25 17:05:11 +02:00
parent 585d82f84b
commit 4166982954
8 changed files with 95 additions and 3 deletions

View File

@@ -134,11 +134,13 @@ namespace BlackCore
CStatusMessageList msgs;
bool directWrite;
const bool sendingSuccessful = CDatastoreUtility::parseSwiftPublishResponse(dataFileData, modelsPublished, modelsSkipped, msgs, directWrite);
const int c = CDatabaseUtils::fillInMissingAircraftAndLiveryEntities(modelsPublished);
emit this->publishedModels(modelsPublished, modelsSkipped, msgs, sendingSuccessful, directWrite);
if (!modelsPublished.isEmpty())
{
emit this->publishedModelsSimplified(modelsPublished);
}
Q_UNUSED(c);
}
else
{