backend: Set default value for options parameter in createRoom function

This commit is contained in:
Carlos Santos 2025-04-11 12:16:58 +02:00
parent 57489189ec
commit fbe0868579

View File

@ -136,7 +136,7 @@ export const loginUserAsRole = async (role: UserRole): Promise<string> => {
/**
* Creates a room with the given prefix
*/
export const createRoom = async (options: MeetRoomOptions): Promise<MeetRoom> => {
export const createRoom = async (options: MeetRoomOptions = {}): Promise<MeetRoom> => {
if (!app) {
throw new Error('App instance is not defined');
}