mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-29 17:34:02 +00:00
Push booking module to lark
This commit is contained in:
@@ -27,7 +27,7 @@ class LarkPushCompanyModuleCommand extends Command
|
||||
}
|
||||
|
||||
$this->info('Starting Lark push company module...');
|
||||
Log::info('Lark push started', [
|
||||
Log::info('[Company Module]: Lark push started', [
|
||||
'limit' => (int) $this->option('limit'),
|
||||
'env' => app()->environment(),
|
||||
]);
|
||||
@@ -49,7 +49,6 @@ class LarkPushCompanyModuleCommand extends Command
|
||||
|
||||
if ($companies->isEmpty()) {
|
||||
$this->warn('⚠️ Nothing to push (all already marked success or none found).');
|
||||
Log::info('Lark push: nothing to push');
|
||||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
@@ -74,12 +73,7 @@ class LarkPushCompanyModuleCommand extends Command
|
||||
]);
|
||||
|
||||
if ($ok) {
|
||||
$this->info('✅ Sent: ' . $company->name . ' | ' . $company->reference);
|
||||
Log::info('Lark push success', [
|
||||
'company_id' => $company->id,
|
||||
'name' => $company->name,
|
||||
'reference' => $company->reference,
|
||||
]);
|
||||
$this->info('[Company Module]: ✅ Sent: ' . $company->name . ' | ' . $company->reference);
|
||||
} else {
|
||||
$this->error('❌ Failed for ' . $company->name . ': ' . $res->status() . ' ' . $res->body());
|
||||
Log::error('Lark push failed', [
|
||||
@@ -106,7 +100,7 @@ class LarkPushCompanyModuleCommand extends Command
|
||||
}
|
||||
|
||||
$this->info('Finished sending ' . $companies->count() . ' records.');
|
||||
Log::info('Lark push finished', ['count' => $companies->count()]);
|
||||
Log::info('[Company Module]: Lark push finished', ['count' => $companies->count()]);
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user