Skip to content

Commit

Permalink
Merge pull request #1422 from nervosnetwork/develop
Browse files Browse the repository at this point in the history
Deploy to testnet
  • Loading branch information
rabbitz committed Aug 31, 2023
2 parents d773622 + 076e37c commit ca0a630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/api/v2/transactions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module V2
class TransactionsController < BaseController
before_action :find_transaction, only: [:raw, :details]
def raw
if stale?(etag: @transaction.tx_hash, public: true)
expires_in 1.day
if stale?(@transaction)
expires_in 1.day, public: true
render json: @transaction.to_raw
end
end
Expand Down

0 comments on commit ca0a630

Please sign in to comment.