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

Remove notes object from User entity, as Note entity is used instead

This commit is contained in:
Madeline 2022-09-04 21:02:21 +10:00
parent 3a3417cded
commit b7f0d75570
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -178,9 +178,6 @@ export class User extends BaseClass {
@Column({ type: "simple-json", select: false }) @Column({ type: "simple-json", select: false })
extended_settings: string = "{}"; extended_settings: string = "{}";
@Column({ type: "simple-json" })
notes: { [key: string]: string } = {}; //key is ID of user
async save(): Promise<any> { async save(): Promise<any> {
if (!this.settings) this.settings = new UserSettings(); if (!this.settings) this.settings = new UserSettings();
this.settings.id = this.id; this.settings.id = this.id;