ソースを参照

fix mobyt and dolibarr data providers

Olivier Massot 2 年 前
コミット
162b33eeec

+ 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']);
     }
 }