Skip to content

Commit

Permalink
🎨 Unused project
Browse files Browse the repository at this point in the history
  • Loading branch information
VioMrqs committed Feb 26, 2025
1 parent 7f2d898 commit 6f0a37a
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
import { TâcheEntity, TâcheRenouvelléeEvent } from '@potentiel-domain/tache';
import { getLogger } from '@potentiel-libraries/monitoring';

import { upsertProjection } from '../../../infrastructure';

import { récupérerProjet } from './utils/récupérerProjet';
import { récupérerTâche } from './utils/récupérerTâche';

export const tâcheRenouvelléeProjector = async ({
payload: { identifiantProjet, typeTâche, ajoutéeLe },
}: TâcheRenouvelléeEvent) => {
const projet = await récupérerProjet(identifiantProjet);

if (!projet) {
getLogger().warn(`Projet inconnu !`, { identifiantProjet: identifiantProjet });
}

const tâche = await récupérerTâche(typeTâche, identifiantProjet);

await upsertProjection<TâcheEntity>(`tâche|${typeTâche}#${identifiantProjet}`, {
Expand Down

0 comments on commit 6f0a37a

Please sign in to comment.