From 077ea155e574f2e745fa5e0f69fb8fe2895467b2 Mon Sep 17 00:00:00 2001 From: Bossett Date: Tue, 31 Dec 2024 10:19:26 +0000 Subject: [PATCH] handle undefined text --- src/subscription.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subscription.ts b/src/subscription.ts index fa41ac2..13b736f 100644 --- a/src/subscription.ts +++ b/src/subscription.ts @@ -63,7 +63,7 @@ export class FirehoseSubscription extends FirehoseSubscriptionBase { uri: create.uri, cid: create.cid, author: create.author, - text: create.record?.text, + text: `${create.record?.text}`, replyParent: create.record?.reply?.parent.uri ?? null, replyRoot: create.record?.reply?.root.uri ?? null, indexedAt: new Date().getTime(),