From 88ec9c27583529a4c23a89eefcf52baab6e5a0a1 Mon Sep 17 00:00:00 2001 From: nextcloud-command Date: Sun, 27 Oct 2024 02:57:09 +0000 Subject: [PATCH 1/2] chore(dev-deps): Bump nextcloud/ocp package Signed-off-by: GitHub --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 686d1d4..09f8c19 100644 --- a/composer.lock +++ b/composer.lock @@ -231,12 +231,12 @@ "source": { "type": "git", "url": "https://github.com/nextcloud-deps/ocp.git", - "reference": "b83c3e45851c4249f42fe088991f66d4af1ceb55" + "reference": "b5b767571ac461011820e8d292509dd0e5bff59d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/b83c3e45851c4249f42fe088991f66d4af1ceb55", - "reference": "b83c3e45851c4249f42fe088991f66d4af1ceb55", + "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/b5b767571ac461011820e8d292509dd0e5bff59d", + "reference": "b5b767571ac461011820e8d292509dd0e5bff59d", "shasum": "" }, "require": { @@ -268,7 +268,7 @@ "issues": "https://github.com/nextcloud-deps/ocp/issues", "source": "https://github.com/nextcloud-deps/ocp/tree/master" }, - "time": "2024-10-12T00:41:45+00:00" + "time": "2024-10-23T11:48:49+00:00" }, { "name": "nikic/php-parser", @@ -2177,8 +2177,8 @@ }, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [], + "platform": {}, + "platform-dev": {}, "platform-overrides": { "php": "8.1" }, From 12d4051da647a096d1e08957a53d505d24a6a452 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 28 Oct 2024 15:55:34 +0100 Subject: [PATCH 2/2] fix(entity): Use db types Signed-off-by: Joas Schilling --- lib/Db/Token.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Db/Token.php b/lib/Db/Token.php index c5cfc91..8a9f4f5 100644 --- a/lib/Db/Token.php +++ b/lib/Db/Token.php @@ -9,6 +9,7 @@ namespace OCA\TwoFactorNextcloudNotification\Db; use OCP\AppFramework\Db\Entity; +use OCP\DB\Types; /** * @method string getUserId() @@ -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); } }