Skip to content

Commit

Permalink
fix(entity): Use db types
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 28, 2024
1 parent 88ec9c2 commit 12d4051
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/Db/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace OCA\TwoFactorNextcloudNotification\Db;

use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;

/**
* @method string getUserId()
Expand All @@ -35,9 +36,9 @@ class Token extends Entity {
protected $timestamp;

public function __construct() {
$this->addType('userId', 'string');
$this->addType('token', 'string');
$this->addType('status', 'int');
$this->addType('timestamp', 'int');
$this->addType('userId', Types::STRING);
$this->addType('token', Types::STRING);
$this->addType('status', Types::INTEGER);
$this->addType('timestamp', Types::INTEGER);
}
}

0 comments on commit 12d4051

Please sign in to comment.