mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Fix ready to execute only if it isn't ready
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -52,7 +52,7 @@ module Api
|
||||
)
|
||||
end
|
||||
|
||||
@shipment.ready!
|
||||
@shipment.ready! unless @shipment.ready?
|
||||
|
||||
render json: @shipment, serializer: Api::ShipmentSerializer, status: :ok
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user