From bdd4ddda522e3a7f0e192e3158148171c0e8f52b Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 24 Dec 2022 16:31:03 -0500 Subject: don't send token_data on connection update --- src/api/routes/connections/#connection_name/callback.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/api/routes/connections/#connection_name/callback.ts b/src/api/routes/connections/#connection_name/callback.ts index 250d4710..b3baa060 100644 --- a/src/api/routes/connections/#connection_name/callback.ts +++ b/src/api/routes/connections/#connection_name/callback.ts @@ -42,7 +42,7 @@ router.post( if (connectedAccnt) emitEvent({ event: "USER_CONNECTIONS_UPDATE", - data: connectedAccnt, + data: { ...connectedAccnt, token_data: undefined }, user_id: userId, }); -- cgit 1.4.1