add appointments for user
This commit is contained in:
commit
e0b1ff55a8
4
dist/SuperAdmin/User.d.ts
vendored
4
dist/SuperAdmin/User.d.ts
vendored
@ -1,6 +1,8 @@
|
||||
export * from "../Admin/User";
|
||||
import UserAdmin from "../Admin/User";
|
||||
import Vote from "./Vote";
|
||||
import Appointment from "./Appointment";
|
||||
export default class User extends UserAdmin {
|
||||
vote?: Vote[];
|
||||
votes?: Vote[];
|
||||
appointment?: Appointment[];
|
||||
}
|
||||
|
9
dist/SuperAdmin/User.js
vendored
9
dist/SuperAdmin/User.js
vendored
@ -30,12 +30,17 @@ __exportStar(require("../Admin/User"), exports);
|
||||
const class_transformer_1 = require("class-transformer");
|
||||
const User_1 = __importDefault(require("../Admin/User"));
|
||||
const Vote_1 = __importDefault(require("./Vote"));
|
||||
const Appointment_1 = __importDefault(require("./Appointment"));
|
||||
class User extends User_1.default {
|
||||
}
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => Vote_1.default),
|
||||
__metadata("design:type", Array)
|
||||
], User.prototype, "vote", void 0);
|
||||
], User.prototype, "votes", void 0);
|
||||
__decorate([
|
||||
(0, class_transformer_1.Expose)(),
|
||||
(0, class_transformer_1.Type)(() => Appointment_1.default),
|
||||
__metadata("design:type", Array)
|
||||
], User.prototype, "appointment", void 0);
|
||||
exports.default = User;
|
||||
;
|
||||
|
@ -2,9 +2,14 @@ export * from "../Admin/User";
|
||||
import { Expose, Type } from "class-transformer";
|
||||
import UserAdmin from "../Admin/User";
|
||||
import Vote from "./Vote";
|
||||
import Appointment from "./Appointment";
|
||||
|
||||
export default class User extends UserAdmin {
|
||||
@Expose()
|
||||
@Type(() => Vote)
|
||||
public vote?: Vote[];
|
||||
};
|
||||
@Expose()
|
||||
@Type(() => Vote)
|
||||
public votes?: Vote[];
|
||||
|
||||
@Expose()
|
||||
@Type(() => Appointment)
|
||||
public appointment?: Appointment[];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user