@@ -118,6 +118,8 @@ import type {
118
118
ListCommandsResponse ,
119
119
ListImportsPaginationOptions ,
120
120
ListImportsResponse ,
121
+ LiveLocation ,
122
+ LiveLocationsAPIResponse ,
121
123
LocalMessage ,
122
124
Logger ,
123
125
MarkChannelsReadOptions ,
@@ -2493,7 +2495,9 @@ export class StreamChat {
2493
2495
* @returns {Promise<APIResponse> } The server response
2494
2496
*/
2495
2497
async getUserLiveLocations ( userId : string ) {
2496
- return await this . get < LiveLocationsAPIResponse > ( this . baseURL + `/users/${ encodeURIComponent ( userId ) } /live_locations` ) ;
2498
+ return await this . get < LiveLocationsAPIResponse > (
2499
+ this . baseURL + `/users/${ encodeURIComponent ( userId ) } /live_locations` ,
2500
+ ) ;
2497
2501
}
2498
2502
2499
2503
/** muteUser - mutes a user
@@ -4420,12 +4424,15 @@ export class StreamChat {
4420
4424
* @returns {Promise<APIResponse> } The server response
4421
4425
*/
4422
4426
async updateLiveLocation ( liveLocation : LiveLocation ) {
4423
- return await this . put < LiveLocation < StreamChatGenerics > > ( this . baseURL + '/users/' + this . userID + '/live_location' , {
4424
- message_id : liveLocation . message_id ,
4425
- longitude : liveLocation . longitude ,
4426
- latitude : liveLocation . latitude ,
4427
- created_by_device_id : liveLocation . created_by_device_id ,
4428
- end_at : liveLocation . end_at ,
4429
- } ) ;
4427
+ return await this . put < LiveLocation > (
4428
+ this . baseURL + '/users/' + this . userID + '/live_location' ,
4429
+ {
4430
+ message_id : liveLocation . message_id ,
4431
+ longitude : liveLocation . longitude ,
4432
+ latitude : liveLocation . latitude ,
4433
+ created_by_device_id : liveLocation . created_by_device_id ,
4434
+ end_at : liveLocation . end_at ,
4435
+ } ,
4436
+ ) ;
4430
4437
}
4431
4438
}
0 commit comments