subscription date not required
This commit is contained in:
parent
95e38db3a2
commit
bb3e87116e
8
dist/Admin/Subscription.js
vendored
8
dist/Admin/Subscription.js
vendored
@ -42,18 +42,10 @@ __decorate([
|
||||
], Subscription.prototype, "type", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_validator_1.IsNotEmpty)({
|
||||
groups: ["createSubscription"],
|
||||
message: "start_date is required",
|
||||
}),
|
||||
__metadata("design:type", Date)
|
||||
], Subscription.prototype, "start_date", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_validator_1.IsNotEmpty)({
|
||||
groups: ["createSubscription"],
|
||||
message: "end_date is required",
|
||||
}),
|
||||
__metadata("design:type", Date)
|
||||
], Subscription.prototype, "end_date", void 0);
|
||||
__decorate([
|
||||
|
@ -22,17 +22,9 @@ export default class Subscription extends Resource {
|
||||
public type!: EType | string;
|
||||
|
||||
@Expose()
|
||||
@IsNotEmpty({
|
||||
groups: ["createSubscription"],
|
||||
message: "start_date is required",
|
||||
})
|
||||
public start_date!: Date;
|
||||
|
||||
@Expose()
|
||||
@IsNotEmpty({
|
||||
groups: ["createSubscription"],
|
||||
message: "end_date is required",
|
||||
})
|
||||
public end_date!: Date;
|
||||
|
||||
@Expose()
|
||||
|
Loading…
x
Reference in New Issue
Block a user