-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manualni zavirani aukci #46
base: manual-closing
Are you sure you want to change the base?
Conversation
@@ -249,6 +263,23 @@ def auction_prolonging_limit_in_seconds | |||
pack&.auction_prolonging_limit_in_seconds || Auctify.configuration.auction_prolonging_limit_in_seconds | |||
end | |||
|
|||
def close_manually(by:, price_check:) | |||
if manually_closed_at.nil? && update(manually_closed_at: Time.current, manually_closed_by: by, manually_closed_price_check: price_check) | |||
Auctify::BiddingCloserJob.perform_later(auction_id: id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tady mi přijde zbytečné to honit přes Job. Rovnou bych dal auction.close_bidding!
end | ||
end | ||
|
||
def lock_bidding(by:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tady budu potřebovat objasnit jaký je rozdíl/použití auction.lick_bidding
a auction.bidding_closed
. Respektive kdy dochází k unlock_bidding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Poznámky k diskusi:
Respektive, pokud se přiřazení vítěze přesune do |
Pak si na to zavolejme. Ted uz bych to samozrejme nepredelaval, jestli jsi nenasel nejaky zadrhel. |
PR pro celkovy prehled provedenych zmen.
Sale muze mit
must_be_closed_manually
, coz meni jeho chovani.Nemiri to do master, PR je tu proto, aby si ho mohli @dedekm a @ornsteinfilip precist.