(ctx context.Context, userID string)
| 184 | } |
| 185 | |
| 186 | func (c *ModerationClient) InvalidateUserCache(ctx context.Context, userID string) error { |
| 187 | if userID == "" { |
| 188 | return fmt.Errorf("empty userID") |
| 189 | } |
| 190 | |
| 191 | endpoint := c.client.makeEndpoint("moderation/user/cache/%s/", userID) |
| 192 | |
| 193 | _, err := c.client.delete(ctx, endpoint, nil, c.client.authenticator.moderationAuth) |
| 194 | return err |
| 195 | } |