mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Added Timestampable interface to entities that missed it, to fix timetravel in certain cases
This commit is contained in:
parent
584062c29a
commit
da0845c11c
5 changed files with 10 additions and 5 deletions
|
@ -30,6 +30,7 @@ use ApiPlatform\OpenApi\Model\Operation;
|
|||
use ApiPlatform\Serializer\Filter\PropertyFilter;
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Entity\Base\TimestampTrait;
|
||||
use App\Entity\Contracts\TimeStampableInterface;
|
||||
use App\Repository\UserSystem\ApiTokenRepository;
|
||||
use App\State\CurrentApiTokenProvider;
|
||||
use App\State\PartDBInfoProvider;
|
||||
|
@ -54,7 +55,7 @@ use Symfony\Component\Validator\Constraints\NotBlank;
|
|||
provider: CurrentApiTokenProvider::class,
|
||||
)]
|
||||
#[ApiFilter(PropertyFilter::class)]
|
||||
class ApiToken
|
||||
class ApiToken implements TimeStampableInterface
|
||||
{
|
||||
|
||||
use TimestampTrait;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue