Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { GetUsersInput } from "@/modules/users/inputs/get-users.input";
import { ApiPropertyOptional } from "@nestjs/swagger";
import { Transform } from "class-transformer";
import { ArrayMaxSize, ArrayNotEmpty, IsEmail, IsOptional } from "class-validator";

export class GetTeamMembershipsInput extends GetUsersInput {
import { SkipTakePagination } from "@calcom/platform-types";

export class GetTeamMembershipsInput extends SkipTakePagination {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetUsersInput consists of emails, skip and take and we process emails differently in GetTeamMembershipsInput and need previous skip and take so we just extend SkipTakePagination instead of GetUsersInput

@IsOptional()
@Transform(({ value }) => {
if (value == null) return undefined;
Expand Down
Loading
Loading