diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-05-15 17:52:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-15 17:52:17 +0300 |
commit | 2d177a1082baa846617915b3b66b66af9a390f61 (patch) | |
tree | eb4f8d116dc16f15d7a14eabc21b5a22f7c3021f | |
parent | Update index.ts (diff) | |
download | server-2d177a1082baa846617915b3b66b66af9a390f61.tar.xz |
Extended settings
-rw-r--r-- | util/src/entities/User.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/src/entities/User.ts b/util/src/entities/User.ts index a5c4c136..558a4190 100644 --- a/util/src/entities/User.ts +++ b/util/src/entities/User.ts @@ -163,6 +163,10 @@ export class User extends BaseClass { @Column({ type: "simple-json", select: false }) settings: UserSettings; + + // workaround to prevent fossord-unaware clients from deleting settings not used by them + @Column({ type: "simple-json", select: false }) + extended_settings: UserSettings; @Column({ type: "simple-json" }) notes: { [key: string]: string }; //key is ID of user @@ -273,6 +277,7 @@ export class User extends BaseClass { valid_tokens_since: new Date(), }, settings: { ...defaultSettings, locale: language }, + extended_settings: {}, fingerprints: [], notes: {}, }); |