(replyId: string | null)
| 392 | ) |
| 393 | |
| 394 | const lastReply = (replyId: string | null) => |
| 395 | replyId === null |
| 396 | ? Effect.succeed(Option.none<Reply.Encoded>()) |
| 397 | : queryReplies("SELECT * FROM c WHERE c.type = 'reply' AND c.rowid = @id", [{ name: "@id", value: replyId }]) |
| 398 | .pipe( |
| 399 | Effect.map((docs) => Option.map(Option.fromNullishOr(docs[0]), replyFromDoc)) |
| 400 | ) |
| 401 | |
| 402 | const markReplyAcked = (requestId: string, replyId: string) => |
| 403 | Effect |
no test coverage detected
searching dependent graphs…