(
auth: AuthContext | null,
id: string,
)
| 71 | } |
| 72 | |
| 73 | async downloadFile( |
| 74 | auth: AuthContext | null, |
| 75 | id: string, |
| 76 | ): Promise<{ buffer: Buffer; file: UploadedFile }> { |
| 77 | const file = await this.getFileById(auth, id); |
| 78 | const buffer = await this.storageService.downloadFile(file.storageKey); |
| 79 | |
| 80 | return { buffer, file }; |
| 81 | } |
| 82 | |
| 83 | async listFiles(auth: AuthContext | null, limit = 100): Promise<UploadedFile[]> { |
| 84 | const organizationId = this.requireOrganizationId(auth); |
nothing calls this directly
no test coverage detected