Refactor EncryptionGetOutgoingChannels and EncryptionChannelManager to remove UUID validation and adjust SQL query for ordering by creation date

https://github.com/nosial/Socialbox-PHP/issues/26
This commit is contained in:
netkas 2025-03-07 19:28:38 -05:00
parent 724b2ae472
commit 7165734aef
2 changed files with 1 additions and 7 deletions

View file

@ -4,10 +4,8 @@
use Socialbox\Abstracts\Method;
use Socialbox\Classes\Configuration;
use Socialbox\Classes\Validator;
use Socialbox\Enums\StandardError;
use Socialbox\Exceptions\DatabaseOperationException;
use Socialbox\Exceptions\Standard\InvalidRpcArgumentException;
use Socialbox\Exceptions\Standard\MissingRpcArgumentException;
use Socialbox\Exceptions\Standard\StandardRpcException;
use Socialbox\Interfaces\SerializableInterface;
@ -27,10 +25,6 @@
{
throw new MissingRpcArgumentException('channel_uuid');
}
elseif(!Validator::validateUuid($rpcRequest->getParameter('channel_uuid')))
{
throw new InvalidRpcArgumentException('channel_uuid', 'The given channel uuid is not a valid UUID V4');
}
$page = 1;
$limit = Configuration::getPoliciesConfiguration()->getEncryptionChannelOutgoingLimit();