1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-25 23:09:22 +00:00

Fix bad output

This commit is contained in:
Pierre HUBERT 2020-03-30 22:34:49 +02:00
parent d64725f03b
commit fd9ca17ef1

View File

@ -218,7 +218,7 @@ export class FriendsController {
public static FriendToAPI(friend: Friend, full: boolean = false) : any { public static FriendToAPI(friend: Friend, full: boolean = false) : any {
let info: any = { let info: any = {
ID_friend: friend.friendID, ID_friend: friend.friendID,
accepted: friend.accepted, accepted: friend.accepted ? 1 : 0,
time_last_activity: time_last_activity:
UserWebSocketController.IsConnected(friend.friendID) ? time() : friend.lastActivityTime UserWebSocketController.IsConnected(friend.friendID) ? time() : friend.lastActivityTime
} }