Skip to content

Commit 3bb2757

Browse files
committed
rename "AuthKeyProps" to "InitiateProps"
1 parent 463d388 commit 3bb2757

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

service/index.ts

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

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

12-
export interface InitiateProps extends AuthKeysProps {
13-
tenantId: string;
14-
}
15-
16-
interface OnlineInfoProps extends AuthKeysProps {
12+
interface OnlineInfoProps extends InitiateProps {
1713
userIds: string;
1814
}
1915

@@ -22,7 +18,7 @@ type OnlineInfoReturnProps = Pick<
2218
"chatAuthId" | "socketId" | "online"
2319
>;
2420

25-
interface ReadTokenProps extends AuthKeysProps {
21+
interface ReadTokenProps extends InitiateProps {
2622
roomIds: string;
2723
}
2824

@@ -103,7 +99,6 @@ export const getRoomsReadToken = async (props: ReadTokenProps) => {
10399
},
104100
},
105101
);
106-
107102
return response.data;
108103
} catch {
109104
// TODO: Log error

0 commit comments

Comments
 (0)