Skip to content

Commit

Permalink
🐛 fix: bug no field in selected query
Browse files Browse the repository at this point in the history
  • Loading branch information
shellrean committed Mar 15, 2021
1 parent 86e9baa commit 7792536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/v1/PenilaianController.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function storeNilaiEsay(Request $request)
->where('jawaban_pesertas.banksoal_id', $jawab->banksoal_id)
->where('jawaban_pesertas.soal_id', $jawab->soal_id)
->join('banksoals', 'jawaban_pesertas.banksoal_id', '=', 'banksoals.id')
->select('jawaban_pesertas.id', 'jawaban_pesertas.esay','jawaban_pesertas.banksoal_id','jawaban_pesertas.soal_id','jawaban_pesertas.jadwal_id','banksoals.jumlah_soal','banksoals.jumlah_soal_listening','banksoals.jumlah_soal_ganda_kompleks','banksoals.jumlah_isian_singkat','banksoals.jumlah_soal_esay','banksoals.persen')
->select('jawaban_pesertas.id', 'jawaban_pesertas.esay','jawaban_pesertas.banksoal_id','jawaban_pesertas.soal_id','jawaban_pesertas.jadwal_id','banksoals.jumlah_soal','banksoals.jumlah_soal_listening','banksoals.jumlah_soal_ganda_kompleks','banksoals.jumlah_isian_singkat','banksoals.jumlah_soal_esay','banksoals.persen', 'jawaban_pesertas.peserta_id')
->get();

if ($sames->count() > 1) {
Expand Down

0 comments on commit 7792536

Please sign in to comment.