Skip to content

Commit

Permalink
fix match updating
Browse files Browse the repository at this point in the history
  • Loading branch information
freigeistig committed Jul 27, 2023
1 parent 13b821d commit 5875617
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/service/handlers/update_match.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package handlers

import (
"github.com/Swapica/order-aggregator-svc/internal/service/responses"
"github.com/Swapica/order-aggregator-svc/internal/ws"
"github.com/Swapica/order-aggregator-svc/resources"
"net/http"
"fmt"
"net/http"

"github.com/Swapica/order-aggregator-svc/internal/data"
"github.com/Swapica/order-aggregator-svc/internal/service/notifications"
"github.com/Swapica/order-aggregator-svc/internal/service/requests"
"github.com/Swapica/order-aggregator-svc/internal/service/responses"
"github.com/Swapica/order-aggregator-svc/internal/ws"
"github.com/Swapica/order-aggregator-svc/resources"
"gitlab.com/distributed_lab/ape"
"gitlab.com/distributed_lab/ape/problems"
"gitlab.com/distributed_lab/logan/v3"
Expand Down Expand Up @@ -49,7 +50,7 @@ func UpdateMatch(w http.ResponseWriter, r *http.Request) {
return
}

originOrder, err := OrdersQ(r).FilterByOrderID(match.OriginOrder).FilterBySrcChain(&match.OrderChain).Get()
originOrder, err := OrdersQ(r).FilterByOrderID(match.OrderID).FilterBySrcChain(&match.OrderChain).Get()
if err != nil {
log.WithError(err).Error("failed to get origin order")
ape.RenderErr(w, problems.InternalError())
Expand Down

0 comments on commit 5875617

Please sign in to comment.