FIX_MODEL_ISSUE&ENV_ADDED

This commit is contained in:
velz 2026-02-06 18:31:13 +05:30
parent 601e9e6ada
commit f2bf93a592
4 changed files with 7 additions and 5 deletions

View File

@ -120,3 +120,4 @@ FHPL_USER_NAME =
FHPL_PASSWORD =
FHPL_GRANT_TYPE =
METABASE_SECRET_KEY=

View File

@ -5467,7 +5467,7 @@ class EmployeeRestController extends AdminController
$client_policy_id = $this->request->getPost('client_policy_id') ?? null;
$received_data = $this->request->getJSON(true) ?? null;
// 🔐 Move this to .env in real projects
$METABASE_SECRET_KEY = '6a9ec3d833576923ea04078188fe26cad17b5de351ab3ce349dd2c2d07b5d0cd';
$METABASE_SECRET_KEY = getenv('METABASE_SECRET_KEY');
$payload = [
'resource' => [

View File

@ -989,14 +989,15 @@ class TestingController extends BaseController
{
// 🔐 Move this to .env in real projects
$METABASE_SECRET_KEY = '6a9ec3d833576923ea04078188fe26cad17b5de351ab3ce349dd2c2d07b5d0cd';
$METABASE_SECRET_KEY = getenv('METABASE_SECRET_KEY');
$policy_id = $this->request->getGet('client_policy');
$policy_id = $policy_id ? $policy_id : 4687;
$payload = [
'resource' => [
// 'dashboard' => 1
'dashboard' => 2
],
'params' => (object)['client_policy' => 4687], // MUST be object for Metabase
'params' => (object)['client_policy' => $policy_id], // MUST be object for Metabase
'exp' => time() + (10 * 60) // 10 minutes
];
// dd($payload);

View File

@ -93,7 +93,7 @@ class TicketMasterModel extends Model
'required_docs',
'policy_transaction_id',
'tpa_claim_type',
'tpa_ailments'
'tpa_ailments',
'claim_dump_ref_id',
];