EOSTracker-API icon indicating copy to clipboard operation
EOSTracker-API copied to clipboard

account_actions_to router can't retrieve data

Open dbarobin opened this issue 6 years ago • 0 comments

In the ./src/AppBundle/Services/ActionService.php file, there is getToAccount function

    public function getToAccount(Account $account, int $page = 1, int $limit = 30)
    {
        return $this->getEntityManager()->createQuery(<<<DQL
SELECT a, aa, att, ac
FROM AppBundle\Entity\Action a
LEFT JOIN a.authorizations aa
JOIN a.transaction att
JOIN a.account ac
WHERE a.account = :ACCOUNT
ORDER BY a.id DESC
DQL
        )
            ->setParameter('ACCOUNT', $account)
            ->setFirstResult($limit * ($page - 1))
            ->setMaxResults($limit)
            ->getResult();
    }

The ./src/AppBundle/Controller/AccountController.php define a route:

  /**
     * @Route("/accounts/{name}/actions/to", name="account_actions_to")
     */

But post a request to http://xxx.xxx.xxx.xxx:8000/accounts/xxxxxx/actions/to get nothing.

In addition, both exists from and to transfer action.

Thanks.

dbarobin avatar Jul 07 '18 05:07 dbarobin