Skip to content

Commit

Permalink
fix: remove onStructureAdded callback for alimentaide
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineRelief committed Dec 3, 2024
1 parent 00cf7ea commit 6a5e63f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/alimentaide/setupCustomListeners.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Schema, Types } from 'mongoose';
import config from 'config';
import onStructureAdded from './onStructureAdded';
// import onStructureAdded from './onStructureAdded';
import onFamilyTransfer from './onFamilyTransfer';
import onFamilyUpdated from './onFamilyEdited';
import onFamilyAdded from './onFamilyAdded';
Expand Down Expand Up @@ -38,7 +38,7 @@ export const setupCustomAlimentaideListeners = <DocType>(
schema.post('save', async function (doc) {
const rec = doc as any;
if (STRUCTURE_FORM_ID.equals(rec.form)) {
await onStructureAdded(rec);
// await onStructureAdded(rec);
} else if (FAMILY_TRANSFER_FORM_ID.equals(rec.form)) {
await onFamilyTransfer(rec);
}
Expand Down

0 comments on commit 6a5e63f

Please sign in to comment.