bug fix in sell pdf generator for customer

This commit is contained in:
Hesabix 2025-02-21 13:05:01 +00:00
parent b23cfe61bd
commit 01f07129c5

View file

@ -98,7 +98,8 @@ class ShortlinksController extends AbstractController
{ {
$doc = $entityManager->getRepository(HesabdariDoc::class)->findOneBy([ $doc = $entityManager->getRepository(HesabdariDoc::class)->findOneBy([
'type' => 'sell', 'type' => 'sell',
'id' => $link 'bid' => $bid,
'shortlink' => $link
]); ]);
if (!$doc) if (!$doc)
throw $this->createNotFoundException(); throw $this->createNotFoundException();