Extended settings
This commit is contained in:
parent
1653f2c505
commit
215df37be5
@ -163,6 +163,10 @@ export class User extends BaseClass {
|
|||||||
|
|
||||||
@Column({ type: "simple-json", select: false })
|
@Column({ type: "simple-json", select: false })
|
||||||
settings: UserSettings;
|
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" })
|
@Column({ type: "simple-json" })
|
||||||
notes: { [key: string]: string }; //key is ID of user
|
notes: { [key: string]: string }; //key is ID of user
|
||||||
@ -273,6 +277,7 @@ export class User extends BaseClass {
|
|||||||
valid_tokens_since: new Date(),
|
valid_tokens_since: new Date(),
|
||||||
},
|
},
|
||||||
settings: { ...defaultSettings, locale: language },
|
settings: { ...defaultSettings, locale: language },
|
||||||
|
extended_settings: {},
|
||||||
fingerprints: [],
|
fingerprints: [],
|
||||||
notes: {},
|
notes: {},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user