feat: add session editing functionality with modal in WorkshopTabs component and enhance session revalidation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user