diff options
Diffstat (limited to 'app/Model/Currency.php')
-rw-r--r-- | app/Model/Currency.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/Currency.php b/app/Model/Currency.php index 6ae842e7..d04df763 100644 --- a/app/Model/Currency.php +++ b/app/Model/Currency.php @@ -64,7 +64,7 @@ class Currency extends Base */ public function create($currency, $rate) { - if ($this->db->table(self::TABLE)->eq('currency', $currency)->count() === 1) { + if ($this->db->table(self::TABLE)->eq('currency', $currency)->exists()) { return $this->update($currency, $rate); } |