Skip to content

Feat/webhooks & UEs sync - #140

Open
tuturd wants to merge 3 commits into
devfrom
feat/webhooks-app
Open

tuturd wants to merge 3 commits into
devfrom
feat/webhooks-app

Conversation

@tuturd

@tuturd tuturd commented Oct 24, 2026

Copy link
Copy Markdown
Member

No description provided.

@tuturd tuturd self-assigned this Oct 24, 2026
@@ -0,0 +1,29 @@
// src/apps/webhooks.module.ts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
// src/apps/webhooks.module.ts

Comment thread src/dnum/dnum.module.ts
/**
* Defines the `Dnum` module.
*/
@Module({})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Je mettrais plus le service ici du coup en exports, ça me semble plus logique

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

le fichier interface c'est surtout pour les types qui sortent de la db, ces types là tu pourrais les mettre n'importe où

*/
@Module({
controllers: [WebhooksController],
providers: [WebhooksService, DnumService],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Du coup j'utiliserais plutôt un import ici du coup

Comment on lines +46 to +49
const existingUes = await this.prisma.ueof.findMany({
where: { code: { in: ues.map((ue) => ue.ue) } },
select: { code: true },
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Au lieu de faire un findMany, pk pas vérifier si createdAt === updatedAt dans la valeur retournée ? (et tant pis si c'est jamais c'était inaccurate, c'est juste une stat retournée à un webhook qui ne le lira jamais 🤷)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants