Skip to content

Commit

Permalink
Merge branch 'dev' for release 5.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainbx committed Mar 3, 2023
2 parents 4228b44 + 3bbca47 commit aa4d676
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog Fab-manager

## v5.8.1 2023 March 03

- Fix a bug: unable to reserve an event

## v5.8.0 2023 March 03

- OpenAPI events endpoint returns category, theme and age_range
Expand Down
2 changes: 1 addition & 1 deletion app/models/reservation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def slots_not_locked
end

def extend_subscription
Subscriptions::ExtensionAfterReservation.new(self).extend_subscription_if_eligible
::Subscriptions::ExtensionAfterReservation.new(self).extend_subscription_if_eligible
end

def notify_member_create_reservation
Expand Down
3 changes: 3 additions & 0 deletions app/services/subscriptions/expire_service.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# frozen_string_literal: true

# Services around subscriptions
module Subscriptions; end

# Expire the given subscription
class Subscriptions::ExpireService
class << self
Expand Down
3 changes: 3 additions & 0 deletions app/services/subscriptions/extension_after_reservation.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# frozen_string_literal: true

# Services around subscriptions
module Subscriptions; end

# Extend the user's current subscription after his first training reservation if
# he subscribed to a rolling plan
class Subscriptions::ExtensionAfterReservation
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fab-manager",
"version": "5.8.0",
"version": "5.8.1",
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
"keywords": [
"fablab",
Expand Down

0 comments on commit aa4d676

Please sign in to comment.