QuestionBankSyncService.php 468 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Services;
  3. use App\Models\PreQuestionCandidate;
  4. use Illuminate\Support\Facades\Log;
  5. class QuestionBankSyncService
  6. {
  7. public function pushCandidate(PreQuestionCandidate $candidate): bool
  8. {
  9. if (!$candidate->structured_json) {
  10. return false;
  11. }
  12. Log::info('QuestionBankSyncService is local-only; skip external sync.', [
  13. 'candidate_id' => $candidate->id,
  14. ]);
  15. return true;
  16. }
  17. }