Skip to content

Commit 8599f55

Browse files
committed
updated the InitiateProps definition
1 parent f4cab86 commit 8599f55

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

service/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ import { ConfigsProps } from "../context/reducers/appReducer";
44
import { RoomProps } from "../context/reducers/roomsReducer";
55
import PackageJson from "../package.json";
66

7-
export interface InitiateProps {
7+
interface AuthKeyProps {
88
apiKey: string;
99
subscriptionKey: string;
1010
}
1111

12-
interface OnlineInfoProps extends InitiateProps {
12+
export interface InitiateProps extends AuthKeyProps {
13+
projectName: string;
14+
}
15+
16+
interface OnlineInfoProps extends AuthKeyProps {
1317
userIds: string;
1418
}
1519

@@ -18,7 +22,7 @@ type OnlineInfoReturnProps = Pick<
1822
"chatAuthId" | "socketId" | "online"
1923
>;
2024

21-
interface ReadTokenProps extends InitiateProps {
25+
interface ReadTokenProps extends AuthKeyProps {
2226
roomIds: string;
2327
}
2428

@@ -33,7 +37,7 @@ const project = {
3337
};
3438

3539
export const initiate = async (props: InitiateProps) => {
36-
const { apiKey, subscriptionKey } = props;
40+
const { apiKey, subscriptionKey, projectName } = props;
3741

3842
try {
3943
const response = await axios.get<ConfigsProps>(`/api/v1/tenant/config/`, {

0 commit comments

Comments
 (0)