Perbaikan dawai_id yg tidak terkirim

This commit is contained in:
Ariyutta
2026-10-03 13:41:06 +07:00
parent 2b3df4f73d
commit f8e534603e
2 changed files with 2 additions and 15 deletions
+2
View File
@@ -257,6 +257,8 @@ class DawaiService
$dawaiId = is_array($result['data'] ?? null) ? ($result['data']['id'] ?? null) : ($result['data'] ?? null);
if ($pengajuan && $dawaiId) {
$pengajuan->update(['dawai_id' => $dawaiId]);
} elseif ($pengajuan) {
Log::warning("DAWAI siskaPengajuanPresensi: respons tanpa id, dawai_id tidak disimpan (pengajuan #{$pengajuan->id}): ".json_encode($result));
}
return true;