Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiakbar committed Jan 25, 2024
1 parent de234a9 commit 978aff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/file/controller/user/file.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class FileController {
@ApiPaginatedResponse(FileMineResponseDto)
@Get()
mine(@Query() pageOptionsDto: PageOptionsDto, @Request() request) {
return this.fileService.findAll(pageOptionsDto, request.user.id);
return this.fileService.getFiles(pageOptionsDto, request.user.id);
}

@ApiSuccessResponse(FileMineResponseDto, 'Successfully received file detail')
Expand Down
2 changes: 1 addition & 1 deletion src/file/service/file.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class FileService {
return result;
}

async findAll(
async getFiles(
pageOptionsDto: PageOptionsDto,
userId: number = null,
): Promise<PageDto<FileResponseDto>> {
Expand Down

0 comments on commit 978aff9

Please sign in to comment.