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";
|
||||
export default class Appointment extends Resource {
|
||||
uid?: string;
|
||||
targeted_user: User;
|
||||
user: User;
|
||||
status: EAppointmentStatus | string;
|
||||
votes?: Vote[];
|
||||
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_transformer_1.Type)(() => User_1.default),
|
||||
__metadata("design:type", User_1.default)
|
||||
], Appointment.prototype, "targeted_user", void 0);
|
||||
], Appointment.prototype, "user", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
__metadata("design:type", String)
|
||||
|
@ -12,7 +12,7 @@ export default class Appointment extends Resource {
|
||||
@IsOptional({ groups: ["createVote"]})
|
||||
@ValidateNested({ groups: ["createVote"] })
|
||||
@Type(() => User)
|
||||
public targeted_user!: User;
|
||||
public user!: User;
|
||||
|
||||
@Expose()
|
||||
public status!: EAppointmentStatus | string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user