(entity params.ForgeEntity)
| 20 | ) |
| 21 | |
| 22 | func composeControllerWatcherFilters(entity params.ForgeEntity) dbCommon.PayloadFilterFunc { |
| 23 | return watcher.WithAny( |
| 24 | watcher.WithAll( |
| 25 | watcher.WithEntityScaleSetFilter(entity), |
| 26 | watcher.WithAny( |
| 27 | watcher.WithOperationTypeFilter(dbCommon.CreateOperation), |
| 28 | watcher.WithOperationTypeFilter(dbCommon.UpdateOperation), |
| 29 | watcher.WithOperationTypeFilter(dbCommon.DeleteOperation), |
| 30 | ), |
| 31 | ), |
| 32 | watcher.WithAll( |
| 33 | watcher.WithEntityFilter(entity), |
| 34 | watcher.WithOperationTypeFilter(dbCommon.UpdateOperation), |
| 35 | ), |
| 36 | ) |
| 37 | } |
no test coverage detected