diff options
Diffstat (limited to 'apps/oauth2')
-rw-r--r-- | apps/oauth2/lib/Db/AccessTokenMapper.php | 5 | ||||
-rw-r--r-- | apps/oauth2/lib/Db/ClientMapper.php | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/oauth2/lib/Db/AccessTokenMapper.php b/apps/oauth2/lib/Db/AccessTokenMapper.php index a748159a754..79c1ecefd95 100644 --- a/apps/oauth2/lib/Db/AccessTokenMapper.php +++ b/apps/oauth2/lib/Db/AccessTokenMapper.php @@ -34,6 +34,9 @@ use OCP\AppFramework\Db\QBMapper; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IDBConnection; +/** + * @template-extends QBMapper<AccessToken> + */ class AccessTokenMapper extends QBMapper { /** @@ -74,6 +77,6 @@ class AccessTokenMapper extends QBMapper { $qb ->delete($this->tableName) ->where($qb->expr()->eq('client_id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT))); - $qb->execute(); + $qb->executeUpdate(); } } diff --git a/apps/oauth2/lib/Db/ClientMapper.php b/apps/oauth2/lib/Db/ClientMapper.php index 85c99e80a5e..787d926d0a9 100644 --- a/apps/oauth2/lib/Db/ClientMapper.php +++ b/apps/oauth2/lib/Db/ClientMapper.php @@ -34,6 +34,9 @@ use OCP\AppFramework\Db\QBMapper; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IDBConnection; +/** + * @template-extends QBMapper<Client> + */ class ClientMapper extends QBMapper { /** |