From fd9ca17ef149127ee2fbea0120bcb231db7b5813 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 30 Mar 2020 22:34:49 +0200 Subject: [PATCH] Fix bad output --- src/controllers/FriendsController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }