This reverts commit 13ba680a73.
This commit is contained in:
1 parent
13ba680a73
commit
58ef0abb99
7 files changed
+29
-587
No files matched your search
@@ -18,8 +18,7 @@ export class CreatePrivateLinkInput {
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"Maximum number of times the link can be used. If omitted and expiresAt is not provided, defaults to 1 (one time use).",
|
||||
description: "Maximum number of times the link can be used. If omitted and expiresAt is not provided, defaults to 1 (one time use).",
|
||||
type: Number,
|
||||
example: 10,
|
||||
minimum: 1,
|
||||
@@ -59,25 +58,4 @@ export class UpdatePrivateLinkInput {
|
||||
maxUsageCount?: number;
|
||||
}
|
||||
|
||||
export class UpdatePrivateLinkBody {
|
||||
@IsOptional()
|
||||
@IsDate()
|
||||
@Type(() => Date)
|
||||
@ApiPropertyOptional({
|
||||
description: "New expiration date for time-based links",
|
||||
type: Date,
|
||||
example: "2024-12-31T23:59:59.000Z",
|
||||
})
|
||||
expiresAt?: Date;
|
||||
|
||||
@IsOptional()
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@ApiPropertyOptional({
|
||||
description: "New maximum number of times the link can be used",
|
||||
type: Number,
|
||||
example: 10,
|
||||
minimum: 1,
|
||||
})
|
||||
maxUsageCount?: number;
|
||||
}
|
||||
@@ -99,9 +99,6 @@ export async function getBookings({
|
||||
role: {
|
||||
in: ["ADMIN", "OWNER"],
|
||||
},
|
||||
...(user.orgId && {
|
||||
teamId: user.orgId,
|
||||
}),
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
|
||||
Reference in new issue
Block a user