소스 검색

fix mobyt and dolibarr data providers

Olivier Massot 2 년 전
부모
커밋
162b33eeec
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/State/Provider/Dolibarr/DolibarrAccountProvider.php
  2. 1 1
      src/State/Provider/Mobyt/MobytUserStatusProvider.php

+ 1 - 1
src/State/Provider/Dolibarr/DolibarrAccountProvider.php

@@ -34,6 +34,6 @@ final class DolibarrAccountProvider implements ProviderInterface
             throw new RuntimeException('not supported', 500);
         }
 
-        return $this->dolibarrAccountCreator->getDolibarrAccount($uriVariables['id']);
+        return $this->dolibarrAccountCreator->getDolibarrAccount($uriVariables['organizationId']);
     }
 }

+ 1 - 1
src/State/Provider/Mobyt/MobytUserStatusProvider.php

@@ -35,6 +35,6 @@ final class MobytUserStatusProvider implements ProviderInterface
             throw new RuntimeException('not supported', 500);
         }
 
-        return $this->mobytUserStatusCreator->getUserStatus((int) $uriVariables['id']);
+        return $this->mobytUserStatusCreator->getUserStatus((int) $uriVariables['organizationId']);
     }
 }