1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

fix rights lol

This commit is contained in:
Madeline 2023-01-11 20:56:11 +11:00
parent ba52570b44
commit 91598123c9
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -158,7 +158,7 @@ export class User extends BaseClass {
premium_usage_flags: number = 0;
@Column({ type: "bigint" })
rights: string = Config.get().register.defaultRights;
rights: string;
@OneToMany(() => Session, (session: Session) => session.user)
sessions: Session[];
@ -359,6 +359,7 @@ export class User extends BaseClass {
? new Date()
: undefined,
settings: settings,
rights: Config.get().register.defaultRights,
});
user.validate();