testapp: enhance deleteAllRooms function to force delete if any room has active meetings and/or recordings

This commit is contained in:
juancarmore 2025-09-05 01:04:33 +02:00
parent 305818feb9
commit 273bd9bb6e

View File

@ -62,7 +62,7 @@ export async function deleteRoom(roomId: string): Promise<void> {
} }
export async function deleteAllRooms(roomIds: string[]): Promise<void> { export async function deleteAllRooms(roomIds: string[]): Promise<void> {
const url = `${configService.meetApiUrl}/rooms?roomIds=${roomIds.join(',')}`; const url = `${configService.meetApiUrl}/rooms?roomIds=${roomIds.join(',')}&withMeeting=force&withRecordings=force`;
console.log(`Deleting ${roomIds.length} rooms from: ${url}`); console.log(`Deleting ${roomIds.length} rooms from: ${url}`);
console.log('Room IDs to delete:', roomIds); console.log('Room IDs to delete:', roomIds);
try { try {