@remnawave/backend-contract 0.0.54 → 0.0.55
Sign up to get free protection for your applications and to get access to all the features.
@@ -83,7 +83,7 @@ var CreateUserCommand;
|
|
83
83
|
required_error: 'Expiration date is required',
|
84
84
|
invalid_type_error: 'Invalid expiration date format',
|
85
85
|
})
|
86
|
-
.refine((
|
86
|
+
.refine(() => new Date(), {
|
87
87
|
message: 'Expiration date cannot be in the past',
|
88
88
|
}),
|
89
89
|
});
|
@@ -84,7 +84,7 @@ export namespace CreateUserCommand {
|
|
84
84
|
required_error: 'Expiration date is required',
|
85
85
|
invalid_type_error: 'Invalid expiration date format',
|
86
86
|
})
|
87
|
-
.refine((
|
87
|
+
.refine(() => new Date(), {
|
88
88
|
message: 'Expiration date cannot be in the past',
|
89
89
|
}),
|
90
90
|
});
|