diff --git a/src/application/model/block.php b/src/application/model/block.php index 02ee851..5f403e6 100644 --- a/src/application/model/block.php +++ b/src/application/model/block.php @@ -26,7 +26,7 @@ class ModelBlock extends Model { $query->execute([$hash, $time]); - $this->_db->lastInsertId(); + return $this->_db->lastInsertId(); } catch (PDOException $e) { diff --git a/src/application/model/user.php b/src/application/model/user.php index f9da70f..c32a8b4 100644 --- a/src/application/model/user.php +++ b/src/application/model/user.php @@ -28,7 +28,7 @@ class ModelUser extends Model { $query->execute([$blockId, $userName]); - $this->_db->lastInsertId(); + return $this->_db->lastInsertId(); } catch (PDOException $e) {