Skip to content

Commit

Permalink
fix: change type in repository and modify route name
Browse files Browse the repository at this point in the history
  • Loading branch information
apsantiso committed Jul 16, 2024
1 parent 2e336ca commit 4e94a3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/modules/file/file.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,16 @@ export class SequelizeFileRepository implements FileRepository {
): Promise<{ size: string }[]> {
const statusesFilter = statuses.map((value) => ({ status: value }));

const fileDateFilters: any = {};
const fileDateFilters: WhereOptions<FileModel> = {};
if (options?.removedFrom) {
fileDateFilters.removed_at = {
fileDateFilters.removedAt = {
[Op.gte]: options?.removedFrom,
};
}

const workspaceItemDateFilters: any = {};
const workspaceItemDateFilters: WhereOptions<WorkspaceItemUserModel> = {};
if (options?.createdFrom) {
workspaceItemDateFilters.created_at = {
workspaceItemDateFilters.createdAt = {
[Op.gte]: options.createdFrom,
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/workspaces/workspaces.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export class WorkspacesController {
return this.workspaceUseCases.getWorkspaceTeams(user, workspaceId);
}

@Get('/:workspaceId/usage')
@Get('/:workspaceId/usage/member')
@ApiOperation({
summary: 'User usage in drive',
})
Expand Down

0 comments on commit 4e94a3a

Please sign in to comment.