-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add script to automatically disable accounts that are no longer valid #1042
base: main
Are you sure you want to change the base?
Conversation
ddf24e6
to
621c72b
Compare
621c72b
to
c074416
Compare
bd518ae
to
80fc8e5
Compare
@@ -39,9 +38,6 @@ async function create(request: Request, response: Response) { | |||
await mailService.sendAccountActivationEmail(link.id, { | |||
recipients: [email] | |||
}); | |||
mailService.emit('prospect:initialized', email, { |
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.
Vérifier dans Brevo comment s'était utilisé et le cas échéant supprimer.
|
||
response.status(constants.HTTP_STATUS_CREATED).json(createdUser); | ||
mailService.emit('user:created', prospect.email, { |
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.
Vérifier dans Brevo comment s'était utilisé et le cas échéant supprimer.
@@ -25,7 +25,7 @@ async function used(id: string): Promise<void> { | |||
async function getByEmail(email: string): Promise<SignupLinkApi | null> { | |||
logger.debug('Get signupLinkApi by prospect_email', email); | |||
|
|||
const link = await SignupLinks().select().where('prospect_email', email).first(); | |||
const link = await SignupLinks().select().where('prospect_email', email).orderBy('expires_at', 'desc').first(); |
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.
Prévoir un script de nettoyage de cette table
} | ||
} | ||
|
||
await delay(100); |
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.
permet d'éviter un blocage par portailDF
414ec30
to
85d0062
Compare
827595b
to
7161f8b
Compare
…add verification script
2cbba6e
to
90a8f09
Compare
Pour obtenir la liste des comptes supprimés / désactivés à l'aide de duckDB, voici la procédure:
Avant exécution:
Après exécution:
Puis:
Pour enrichir après coup le CSV des informations concernant l'établissement:
Puis:
Et enfin: