File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export class FriendsService {
1919 `https://api.steampowered.com/ISteamUser/GetFriendList/v1/?key=${ this . steamApiKey } &steamid=${ user . steam_id } ` ,
2020 ) ;
2121 const { friendslist } = await response . json ( ) ;
22- const friends = friendslist . friends . map ( ( friend : { steamid : string } ) => {
22+ const friends = friendslist ? .friends . map ( ( friend : { steamid : string } ) => {
2323 return friend . steamid ;
2424 } ) ;
2525 const { players } = await this . hasura . query ( {
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ export function getCookieOptions(
3434 httpOnly : true ,
3535 domain : process . env . AUTH_COOKIE_DOMAIN || `.${ process . env . WEB_DOMAIN } ` ,
3636 maxAge : 14 * 24 * 60 * 60 * 1000 ,
37- secure : process . env . SECURE_COOKIE ? process . env . SECURE_COOKIE === "true" : true ,
37+ secure : process . env . SECURE_COOKIE
38+ ? process . env . SECURE_COOKIE === "true"
39+ : true ,
3840 } ,
3941) : CookieOptions {
4042 return Object . assign ( { } , defaultOptions , options ) ;
You can’t perform that action at this time.
0 commit comments