add patient
This commit is contained in:
@@ -210,7 +210,7 @@ func Delete(input e.DeleteDto) (*d.Data, error) {
|
||||
return err
|
||||
}
|
||||
|
||||
mwRunner.setMwType(pu.MWTPost)
|
||||
mwRunner.setMwType(pu.MWTPre)
|
||||
// Run pre-middleware
|
||||
if err := mwRunner.RunDeleteMiddleware(deletePreMw, &input); err != nil {
|
||||
return err
|
||||
|
||||
@@ -7,14 +7,14 @@ import (
|
||||
// example of middleware
|
||||
func init() {
|
||||
createPreMw = append(createPreMw,
|
||||
createMw{Name: "create-unit", Func: plugin.Create})
|
||||
createMw{Name: "sync-create-unit", Func: plugin.Create})
|
||||
|
||||
createSimxLogMw = append(createSimxLogMw,
|
||||
createLogMw{Name: "create-log", Func: plugin.CreateLog})
|
||||
createLogMw{Name: "create-sync-log", Func: plugin.CreateLog})
|
||||
|
||||
updatePreMw = append(updatePreMw,
|
||||
updateMw{Name: "update-unit", Func: plugin.Update})
|
||||
updateMw{Name: "sync-update-unit", Func: plugin.Update})
|
||||
|
||||
deletePreMw = append(deletePreMw,
|
||||
deleteMw{Name: "delete-unit", Func: plugin.Delete})
|
||||
deleteMw{Name: "sync-delete-unit", Func: plugin.Delete})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user