diff --git a/src/controllers/FriendsController.ts b/src/controllers/FriendsController.ts index 1796274..3d06335 100644 --- a/src/controllers/FriendsController.ts +++ b/src/controllers/FriendsController.ts @@ -218,7 +218,7 @@ export class FriendsController { public static FriendToAPI(friend: Friend, full: boolean = false) : any { let info: any = { ID_friend: friend.friendID, - accepted: friend.accepted, + accepted: friend.accepted ? 1 : 0, time_last_activity: UserWebSocketController.IsConnected(friend.friendID) ? time() : friend.lastActivityTime }