summaryrefslogtreecommitdiff
path: root/app/Model/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/User.php')
-rw-r--r--app/Model/User.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Model/User.php b/app/Model/User.php
index 6dd78dbb..cbfca0ac 100644
--- a/app/Model/User.php
+++ b/app/Model/User.php
@@ -3,6 +3,7 @@
namespace Kanboard\Model;
use PicoDb\Database;
+use Kanboard\Core\Base;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
@@ -269,7 +270,7 @@ class User extends Base
public function create(array $values)
{
$this->prepare($values);
- return $this->persist(self::TABLE, $values);
+ return $this->db->table(self::TABLE)->persist($values);
}
/**