()
| 234 | } |
| 235 | |
| 236 | func (s *UserStore) CountUsersByInbound() (map[string]int, error) { |
| 237 | rows, err := sqlcgen.New(s.db).CountUsersByInbound(context.Background()) |
| 238 | if err != nil { |
| 239 | return nil, fmt.Errorf("count users by inbound: %w", err) |
| 240 | } |
| 241 | result := make(map[string]int, len(rows)) |
| 242 | for _, r := range rows { |
| 243 | result[r.InboundID] = int(r.Count) |
| 244 | } |
| 245 | return result, nil |
| 246 | } |
| 247 | |
| 248 | func (s *UserStore) DeleteUserInbound(id string) error { |
| 249 | result, err := sqlcgen.New(s.db).DeleteUserInboundByID(context.Background(), id) |
nothing calls this directly
no test coverage detected