Fix ready to execute only if it isn't ready

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
Neal Chambers
2023-08-30 09:25:14 +09:00
parent 819fa611e8
commit b0bb97a22f

View File

@@ -52,7 +52,7 @@ module Api
)
end
@shipment.ready!
@shipment.ready! unless @shipment.ready?
render json: @shipment, serializer: Api::ShipmentSerializer, status: :ok
end