feat: add session editing functionality with modal in WorkshopTabs component and enhance session revalidation

This commit is contained in:
Julien Froidefond
2025-11-28 10:48:36 +01:00
parent ac079ed8b2
commit cb4873cd40
4 changed files with 242 additions and 22 deletions

View File

@@ -49,6 +49,7 @@ export async function updateMotivatorSession(
revalidatePath(`/motivators/${sessionId}`);
revalidatePath('/motivators');
revalidatePath('/sessions'); // Also revalidate unified workshops page
return { success: true };
} catch (error) {
console.error('Error updating motivator session:', error);
@@ -65,6 +66,7 @@ export async function deleteMotivatorSession(sessionId: string) {
try {
await motivatorsService.deleteMotivatorSession(sessionId, authSession.user.id);
revalidatePath('/motivators');
revalidatePath('/sessions'); // Also revalidate unified workshops page
return { success: true };
} catch (error) {
console.error('Error deleting motivator session:', error);