diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-12 03:24:51 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-13 21:57:51 +0200 |
commit | 1d52b0d0721094d7f8dfaabddedd9f08a5e456a5 (patch) | |
tree | 1136d2550f7f47f4eebd560251353f9c0cd98a6f /util/src/entities/User.ts | |
parent | Push local state... (diff) | |
download | server-1d52b0d0721094d7f8dfaabddedd9f08a5e456a5.tar.xz |
Fix updated client stuff...
Diffstat (limited to 'util/src/entities/User.ts')
-rw-r--r-- | util/src/entities/User.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/src/entities/User.ts b/util/src/entities/User.ts index 6edcda97..61343e81 100644 --- a/util/src/entities/User.ts +++ b/util/src/entities/User.ts @@ -185,8 +185,10 @@ export class User extends BaseClass { notes: { [key: string]: string } = {}; //key is ID of user async save(): Promise<any> { - await this.settings.save(); - return this.save(); + if(!this.settings) this.settings = new UserSettings(); + this.settings.id = this.id; + //await this.settings.save(); + return super.save(); } toPublicUser() { |