+2
-1
app/src/utils/api.ts
+2
-1
app/src/utils/api.ts
···
47
47
}
48
48
49
49
export async function sendPings(friend_id: string, ping: string): Promise<void> {
50
-
await post("send-pings", JSON.stringify({ receiver_id: friend_id, encrypted_ping: ping }));
50
+
// later, accept a list of friend ids, but anyways this specific api won't stay in typescript for long since it needs to be run in the background
51
+
await post("send-pings", JSON.stringify([{ receiver_id: friend_id, encrypted_ping: ping }]));
51
52
}
52
53
53
54
export async function getPings(friend_id: string): Promise<string[]> {