(fileUrl: string, token: string)
| 130 | }; |
| 131 | |
| 132 | export const fetchFile = async (fileUrl: string, token: string) => { |
| 133 | if (!token) return await request.get(fileUrl); |
| 134 | |
| 135 | const response = await request |
| 136 | .get(fileUrl) |
| 137 | .set('Authorization', 'Bearer ' + token); |
| 138 | return response; |
| 139 | }; |
| 140 | |
| 141 | export const fetchRepliesTyped = async ( |
| 142 | threadTs: string, |
no test coverage detected