refacto user targeted
This commit is contained in:
parent
a100398ef5
commit
16baf46d39
2
dist/SuperAdmin/Appointment.d.ts
vendored
2
dist/SuperAdmin/Appointment.d.ts
vendored
@ -3,7 +3,7 @@ import User from "./User";
|
|||||||
import Vote from "./Vote";
|
import Vote from "./Vote";
|
||||||
export default class Appointment extends Resource {
|
export default class Appointment extends Resource {
|
||||||
uid?: string;
|
uid?: string;
|
||||||
targeted_user: User;
|
user: User;
|
||||||
status: EAppointmentStatus | string;
|
status: EAppointmentStatus | string;
|
||||||
votes?: Vote[];
|
votes?: Vote[];
|
||||||
choice: EVote | string;
|
choice: EVote | string;
|
||||||
|
2
dist/SuperAdmin/Appointment.js
vendored
2
dist/SuperAdmin/Appointment.js
vendored
@ -30,7 +30,7 @@ __decorate([
|
|||||||
(0, class_validator_1.ValidateNested)({ groups: ["createVote"] }),
|
(0, class_validator_1.ValidateNested)({ groups: ["createVote"] }),
|
||||||
(0, class_transformer_1.Type)(() => User_1.default),
|
(0, class_transformer_1.Type)(() => User_1.default),
|
||||||
__metadata("design:type", User_1.default)
|
__metadata("design:type", User_1.default)
|
||||||
], Appointment.prototype, "targeted_user", void 0);
|
], Appointment.prototype, "user", void 0);
|
||||||
__decorate([
|
__decorate([
|
||||||
(0, class_transformer_1.Expose)(),
|
(0, class_transformer_1.Expose)(),
|
||||||
__metadata("design:type", String)
|
__metadata("design:type", String)
|
||||||
|
@ -12,7 +12,7 @@ export default class Appointment extends Resource {
|
|||||||
@IsOptional({ groups: ["createVote"]})
|
@IsOptional({ groups: ["createVote"]})
|
||||||
@ValidateNested({ groups: ["createVote"] })
|
@ValidateNested({ groups: ["createVote"] })
|
||||||
@Type(() => User)
|
@Type(() => User)
|
||||||
public targeted_user!: User;
|
public user!: User;
|
||||||
|
|
||||||
@Expose()
|
@Expose()
|
||||||
public status!: EAppointmentStatus | string;
|
public status!: EAppointmentStatus | string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user