Skip to content

Commit 76b5e40

Browse files
committed
fix: isAI is non-required
1 parent 736e67c commit 76b5e40

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/v1/controller/room/info/Ordinary.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class OrdinaryInfo extends AbstractController<RequestType, ResponseType>
5252
"region",
5353
"periodic_uuid",
5454
"has_record",
55+
"is_ai"
5556
],
5657
{
5758
room_uuid: roomUUID,
@@ -75,6 +76,7 @@ export class OrdinaryInfo extends AbstractController<RequestType, ResponseType>
7576
region,
7677
periodic_uuid: periodicUUID,
7778
has_record,
79+
is_ai
7880
} = roomInfo;
7981

8082
const userInfo = await UserDAO().findOne(["user_name"], {
@@ -110,6 +112,7 @@ export class OrdinaryInfo extends AbstractController<RequestType, ResponseType>
110112
region,
111113
inviteCode,
112114
isPmi,
115+
isAI: is_ai
113116
},
114117
},
115118
};
@@ -140,5 +143,6 @@ interface ResponseType {
140143
region: Region;
141144
inviteCode: string;
142145
isPmi: boolean;
146+
isAI?: boolean;
143147
};
144148
}

src/v1/controller/room/join/Type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ export type ResponseType = {
1616
rtmToken: string;
1717
region: Region;
1818
showGuide: boolean;
19-
isAI: boolean;
19+
isAI?: boolean;
2020
};

0 commit comments

Comments
 (0)