Skip to content

Commit

Permalink
Recalculate next joined appointment on Fez delete (jocosocial#372)
Browse files Browse the repository at this point in the history
recalculate next joined appointment when deleting a personal or private event
  • Loading branch information
cohoe authored Jan 27, 2025
1 parent fc6f51a commit 94e1d72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/swiftarr/Controllers/FezController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ struct FezController: APIRouteCollection {
try await fez.logIfModeratorAction(.delete, moderatorID: cacheUser.userID, on: req)
try await fez.$participants.detachAll(on: req.db).get()
try await fez.delete(on: req.db)
_ = try await storeNextJoinedAppointment(userID: cacheUser.userID, on: req)
return .noContent
}

Expand Down

0 comments on commit 94e1d72

Please sign in to comment.