fix(TM): List is now working again

It was referencing the new memsource API url (v2), but list still uses
v1.
This commit is contained in:
Bruno F. Fontes 2022-12-30 10:50:14 -03:00
parent a22f23cc10
commit 8d189ae541
Signed by: brunofontes
GPG Key ID: 4DAA810052CF68B6

View File

@ -27,7 +27,7 @@ class TM extends \BrunoFontes\Memsource\BaseApi
*/
public function list(array $queryParams = []): string
{
$response = $this->fetchApi->fetch('get', $this->_url, $queryParams);
$response = $this->fetchApi->fetch('get', '/api2/v1/transMemories/', $queryParams);
if ($this->hasError($response)) {
throw new \Exception("Error listing TMs: " . $this->getError($response), 1);
}