From 94e1d729ac047b0c42d336e19f56abf7a54dc25c Mon Sep 17 00:00:00 2001 From: Grant Cohoe Date: Sun, 26 Jan 2025 23:01:14 -0500 Subject: [PATCH] Recalculate next joined appointment on Fez delete (#372) recalculate next joined appointment when deleting a personal or private event --- Sources/swiftarr/Controllers/FezController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/swiftarr/Controllers/FezController.swift b/Sources/swiftarr/Controllers/FezController.swift index 4cdcb443d..4de9c09ef 100644 --- a/Sources/swiftarr/Controllers/FezController.swift +++ b/Sources/swiftarr/Controllers/FezController.swift @@ -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 }