Skip to content

Commit

Permalink
[MODORSERS-1026] - Fixed context issue
Browse files Browse the repository at this point in the history
  • Loading branch information
azizbekxm committed Mar 28, 2024
1 parent 17a3b29 commit 63766bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.folio.models.template;
package org.folio.models;

import java.util.List;
import java.util.UUID;
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/folio/rest/impl/RoutingListAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,24 @@
import io.vertx.core.AsyncResult;
import io.vertx.core.Context;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import org.apache.commons.lang.NotImplementedException;
import org.folio.rest.core.models.RequestContext;
import org.folio.rest.jaxrs.model.RoutingList;
import org.folio.rest.jaxrs.resource.OrdersRoutingLists;
import org.folio.service.routinglist.RoutingListService;
import org.folio.spring.SpringContextUtil;
import org.springframework.beans.factory.annotation.Autowired;

public class RoutingListAPI extends BaseApi implements OrdersRoutingLists {

@Autowired
private RoutingListService routingListService;

public RoutingListAPI() {
SpringContextUtil.autowireDependencies(this, Vertx.currentContext());
}

@Override
public void getOrdersRoutingLists(String query, String totalRecords, int offset, int limit, Map<String, String> okapiHeaders,
Handler<AsyncResult<Response>> asyncResultHandler, Context vertxContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import io.vertx.core.Future;
import io.vertx.core.json.JsonObject;
import lombok.extern.log4j.Log4j2;
import org.folio.models.template.TemplateProcessingRequest;
import org.folio.models.TemplateProcessingRequest;
import org.folio.rest.core.RestClient;
import org.folio.rest.core.models.RequestContext;
import org.folio.rest.core.models.RequestEntry;
Expand Down

0 comments on commit 63766bc

Please sign in to comment.