Commit af8c748d authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Tri des jetons par userId

parent 782bf7f5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class TokenService
        try {
            $uuid = $this->generateUuid();
        } catch (Exception $e) {
            throw new RuntimeException("", null, $e);
            throw TokenServiceException::generateUuidError($e);
        }

        $class = $this->moduleOptions->getUserTokenEntityClass();
@@ -111,7 +111,10 @@ class TokenService
     */
    public function findAllUserToken(): array
    {
        return $this->getRepository()->findAll();
        $qb = $this->getRepository()->createQueryBuilder('ut')
            ->addOrderBy('ut.userId');

        return $qb->getQuery()->getResult();
    }

    /**