-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TECH] Refacto - méthodes dans OrganizationPlacesLotRepository (PIX-15818) #11012
[TECH] Refacto - méthodes dans OrganizationPlacesLotRepository (PIX-15818) #11012
Conversation
Une fois les applications déployées, elles seront accessibles via les liens suivants :
Les variables d'environnement seront accessibles via les liens suivants : |
f5ac8cf
to
50a4a6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Func OK
*/ | ||
|
||
const getOrganizationPlacesLots = async function ({ organizationId, organizationPlacesLotRepository }) { | ||
return await organizationPlacesLotRepository.findAllNotDeletedByOrganizationId(organizationId); | ||
if (!organizationId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tech review ok ✅
… few modifiers method
…nById methods are called
50a4a6d
to
6e1714b
Compare
🎄 Problème
A l'intérieur de organization-places-lot-repository, on a 4 méthodes qui font sensiblement la même chose, à quelques colonnes et conditions près : récupérer les lots de places pour une organisation donnée (voir findAllByOrganizationId, findAllByOrganizationIds, et des déclinaisons similaires pour récupérer les utilisateurs non supprimés et ajouter un order by).
🎁 Proposition
🧦 Remarques
🎅 Pour tester