summary refs log tree commit diff
path: root/src/util/entities
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/entities/PluginConfig.ts2
-rw-r--r--src/util/entities/User.ts20
-rw-r--r--src/util/entities/index.ts5
3 files changed, 26 insertions, 1 deletions
diff --git a/src/util/entities/PluginConfig.ts b/src/util/entities/PluginConfig.ts

index a1364912..87de5167 100644 --- a/src/util/entities/PluginConfig.ts +++ b/src/util/entities/PluginConfig.ts
@@ -7,5 +7,5 @@ export class PluginConfigEntity extends BaseClassWithoutId { key: string; @Column({ type: "simple-json", nullable: true }) - value: number | boolean | null | string | undefined; + value: number | boolean | null | string | Date | undefined; } \ No newline at end of file diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts
index 1237b676..57afb132 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts
@@ -233,6 +233,26 @@ export class User extends BaseClass { } } + /** + * + * + * @static + * @param {{ + * username: string; + * password?: string; + * email?: string; + * date_of_birth?: Date; // "2000-04-03" + * req?: any; + * }} { + * email, + * username, + * password, + * date_of_birth, + * req, + * } + * @return {*} + * @memberof User + */ static async register({ email, username, diff --git a/src/util/entities/index.ts b/src/util/entities/index.ts
index 2b91c2ba..444a7e49 100644 --- a/src/util/entities/index.ts +++ b/src/util/entities/index.ts
@@ -31,3 +31,8 @@ export * from "./User"; export * from "./UserSettings"; export * from "./VoiceState"; export * from "./Webhook"; +export * from "./ClientRelease"; +export * from "./BackupCodes"; +export * from "./Note"; +export * from "./UserSettings"; +export * from "./PluginConfig";