GetRulesConfigs gets the rules configs that have changed since the given config version.
(ctx context.Context, since userconfig.ID)
| 131 | // GetRulesConfigs gets the rules configs that have changed |
| 132 | // since the given config version. |
| 133 | func (d *DB) GetRulesConfigs(ctx context.Context, since userconfig.ID) (map[string]userconfig.VersionedRulesConfig, error) { |
| 134 | cfgs := map[string]userconfig.VersionedRulesConfig{} |
| 135 | for user, c := range d.cfgs { |
| 136 | if c.ID <= since { |
| 137 | continue |
| 138 | } |
| 139 | cfg := c.GetVersionedRulesConfig() |
| 140 | if cfg != nil { |
| 141 | cfgs[user] = *cfg |
| 142 | } |
| 143 | } |
| 144 | return cfgs, nil |
| 145 | } |
nothing calls this directly
no test coverage detected