Skip to content

Commit

Permalink
feat: Add first tenant id
Browse files Browse the repository at this point in the history
  • Loading branch information
yaraslau-kavaliou committed Apr 3, 2024
1 parent 6760bf2 commit a597ad5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/DataStore/MetaDataDeliverySyncTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit a597ad5

Please sign in to comment.