İlk temizlik tamamlandı bir önceki projeden

This commit is contained in:
Ümit Tunç
2026-04-28 21:14:25 +03:00
commit f80443aec0
10000 changed files with 959965 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
function syncTrigger($tableName, $id)
{
$syncMap = [
'line_lists' => [
'cron.line_lists-sync-from-linelists-to-weldlog',
'cron.line_lists-sync-from-linelists-paint-matrix',
'cron.line_lists-sync-from-linelists-nde-matrix',
],
'nde_matrices' => [
'cron.nde_matrices-sync-nde-to-weldlog',
],
'weld_logs' => [
'cron.weld_logs-sync-from-weldlog-to-paint-follow-up',
'cron.weld_logs-sync-from-weldlog-to-test-pack',
'cron.weld_logs-sync-weldlog-nde-project',
],
'incoming_control_paints' => [
'cron.incoming_control_paints-sync-from-incoming-control-paint-paint-follow-up',
],
'punch_lists' => [
'cron.punch_lists-sync-punch-qty',
],
];
if(isset($syncMap[$tableName]))
{
foreach($syncMap[$tableName] AS $syncPath)
{
try {
\App\Jobs\SyncTriggerJob::dispatch($syncPath, $id);
\Log::info("SyncTriggerJob dispatched for $syncPath with ID $id");
} catch (\Exception $e) {
\Log::error("Failed to dispatch SyncTriggerJob for $syncPath", [
'id' => $id,
'error' => $e->getMessage()
]);
}
}
}
}
?>