backend: Set default value for options parameter in createRoom function
This commit is contained in:
parent
57489189ec
commit
fbe0868579
@ -136,7 +136,7 @@ export const loginUserAsRole = async (role: UserRole): Promise<string> => {
|
|||||||
/**
|
/**
|
||||||
* Creates a room with the given prefix
|
* 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) {
|
if (!app) {
|
||||||
throw new Error('App instance is not defined');
|
throw new Error('App instance is not defined');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user