Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 3 additions & 24 deletions force-app/main/default/classes/CustomMDTTriggerHandler.cls
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,9 @@ public with sharing class CustomMDTTriggerHandler extends TriggerHandler {
continue;
}

// dispatch to the correct handler method
switch on this.context {
when BEFORE_INSERT {
handler.beforeInsert();
}
when BEFORE_UPDATE {
handler.beforeUpdate();
}
when BEFORE_DELETE {
handler.beforeDelete();
}
when AFTER_INSERT {
handler.afterInsert();
}
when AFTER_UPDATE {
handler.afterUpdate();
}
when AFTER_DELETE {
handler.afterDelete();
}
when AFTER_UNDELETE {
handler.afterUndelete();
}
}
// Call default handler to provide bypass and MaxLoop functionality
handler.run();

}
}

Expand Down