Skip to content

Commit

Permalink
fix: remove Readable response type for bucket controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Sep 23, 2024
1 parent 95041ea commit f8a9fe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export class BucketFileController {
@DPath('id') id: string,
@DRequest() req: any,
@DResponse() res: any,
): Promise<ReadableStream> {
return await executeBucketFileRouteStreamHandler(req, res) as ReadableStream;
): Promise<any> {
return await executeBucketFileRouteStreamHandler(req, res) as any;
}

@DGet('/:id', [ForceLoggedInMiddleware])
Expand Down
4 changes: 2 additions & 2 deletions packages/server-storage/src/http/controllers/bucket/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class BucketController {
@DPath('id') id: string,
@DRequest() req: any,
@DResponse() res: any,
): Promise<ReadableStream> {
return await executeBucketRouteStreamHandler(req, res) as ReadableStream;
): Promise<any> {
return await executeBucketRouteStreamHandler(req, res) as any;
}

@DPost('/:id/upload', [ForceLoggedInMiddleware])
Expand Down

0 comments on commit f8a9fe0

Please sign in to comment.