({ id, accountId }: GetType)
| 79 | } |
| 80 | |
| 81 | static async get({ id, accountId }: GetType) { |
| 82 | const thread = await findThreadById(id); |
| 83 | if (!thread) { |
| 84 | return null; |
| 85 | } |
| 86 | if (thread.channel?.accountId !== accountId) { |
| 87 | return null; |
| 88 | } |
| 89 | return serializeThread(thread); |
| 90 | } |
| 91 | |
| 92 | static async update({ |
| 93 | id, |
nothing calls this directly
no test coverage detected