Skip to content

Commit

Permalink
Fix UserConfigService CDI scope (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg authored May 17, 2021
1 parent c085880 commit 2989168
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.redhat.cloud.notifications.Constants;
import com.redhat.cloud.notifications.auth.rhid.RhIdPrincipal;
import com.redhat.cloud.notifications.db.ApplicationResources;
import com.redhat.cloud.notifications.db.BundleResources;
Expand All @@ -20,7 +21,6 @@
import io.smallrye.mutiny.Uni;
import org.eclipse.microprofile.openapi.annotations.Operation;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.validation.Valid;
import javax.ws.rs.BadRequestException;
Expand All @@ -38,10 +38,11 @@
import java.util.ArrayList;
import java.util.List;

@Path("/api/notifications/v1.0/user-config")
@Produces("application/json")
@Consumes("application/json")
@RequestScoped
import static javax.ws.rs.core.MediaType.APPLICATION_JSON;

@Path(Constants.API_NOTIFICATIONS_V_1_0 + "/user-config")
@Consumes(APPLICATION_JSON)
@Produces(APPLICATION_JSON)
public class UserConfigService {

private static final ObjectMapper mapper = new ObjectMapper();
Expand Down

0 comments on commit 2989168

Please sign in to comment.