From a597ad544973c8fa6ef422d8a3d2f441344f61c4 Mon Sep 17 00:00:00 2001 From: Yaraslau Kavaliou Date: Wed, 3 Apr 2024 18:05:10 +0300 Subject: [PATCH] feat: Add first tenant id --- model/DataStore/MetaDataDeliverySyncTask.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/DataStore/MetaDataDeliverySyncTask.php b/model/DataStore/MetaDataDeliverySyncTask.php index 5746fd45..95ac7ab9 100644 --- a/model/DataStore/MetaDataDeliverySyncTask.php +++ b/model/DataStore/MetaDataDeliverySyncTask.php @@ -50,6 +50,7 @@ class MetaDataDeliverySyncTask extends AbstractAction implements JsonSerializabl public const TEST_URI_PARAM_NAME = 'testUri'; public const MAX_TRIES_PARAM_NAME = 'maxTries'; public const IS_REMOVE_PARAM_NAME = 'isRemove'; + public const FIRST_TENANT_ID = 'firstTenantId'; /** * @throws InvalidServiceManagerException @@ -142,6 +143,8 @@ private function prepareMetaData($params) //test MetaData $test = $this->getResource($params[self::TEST_URI_PARAM_NAME]); $params['testMetaData'] = $compiler->compile($test); + $params['testMetaData']['first-tenant-id'] = $params[self::FIRST_TENANT_ID] ?? null; + //Item MetaData $params['itemMetaData'] = $this->getItemMetaData($test, $compiler);