From 162dd2804dd9e8d885a2aa7559298f9396ff6e13 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 13 Dec 2018 01:46:02 -0600 Subject: [PATCH] finance helper model update --- app/Library/FinanceHelper.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Library/FinanceHelper.php b/app/Library/FinanceHelper.php index f5d7b84fb..ca9c34fed 100644 --- a/app/Library/FinanceHelper.php +++ b/app/Library/FinanceHelper.php @@ -139,7 +139,6 @@ class FinanceHelper { $date = $esiHelper->DecodeDate($journal['date']); if($journal['ref_type'] == 'player_donation') { - //$check = DB::table('PlayerDonationJournals')->where('id', $journal['id'])->get(); //if we don't find the journal entry, add the journal entry to the database if(!PlayerDonationJournal::where('id', $journal['id'])->exists()) { $entry = new CorpJournal; @@ -179,9 +178,8 @@ class FinanceHelper { $entry->save(); } } else { - //$check = DB::table('CorpJournals')->where('id', $journal['id'])->get(); //if we don't find the journal entry, add the journal entry to the database - if(CorpJournal::where('id', $journal['id'])->exists()) { + if(!CorpJournal::where('id', $journal['id'])->exists()) { $entry = new CorpJournal; $entry->id = $journal['id']; $entry->corporation_id = $corpId;