Skip to content
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

Retranscription du PAI dans le backend #3350

Closed
wants to merge 22 commits into from

Conversation

amandinejacquelin
Copy link
Contributor

No description provided.

Copy link
Contributor

@farnoux farnoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Un peu surpris de voir autant de code non utilisé (cf les quelques commentaires) et non lié au PAI.

Je suis assez mal à l'aise d'ajouter du code "mort" au repo. Ici c'est une quantité qui parait en plus non négligeable.

C'est quoi la logique derrière ?

* @param collectiviteId identifiant de la collectivité
* @param doNotThrow vrai pour ne pas générer une exception
*/
async verifieAccesRestreintCollectivite(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne trouve aucun usage de cette méthode ailleurs dans la PR. Normal ?

* @param tokenInfo token de l'utilisateur
* @return les informations crm de l'utilisateur
*/
async getUserCrmInfo(tokenInfo: SupabaseJwtPayload): Promise<userCrm | null> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem ici je ne trouve aucun usage de cette méthode ?

import { integer, pgTable, serial, varchar } from 'drizzle-orm/pg-core';
import { collectiviteTable } from './collectivite.table';

export const collectiviteTestTable = pgTable('collectivite_test', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem. je ne vois pas l'usage de cette table ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants