From 56215382a3e44f165d3e429c501c646c3fce9957 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Mon, 1 Apr 2024 22:28:34 +0200 Subject: [PATCH] server: remove static props which are currently unused --- server/models/chan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/chan.ts b/server/models/chan.ts index 6443c66e..1093e63e 100644 --- a/server/models/chan.ts +++ b/server/models/chan.ts @@ -38,7 +38,6 @@ class Chan { data?: any; closed?: boolean; num_users?: number; - static optionalProperties = ["userAway", "special", "data", "closed", "num_users"]; constructor(attr?: Partial) { _.defaults(this, attr, { @@ -232,6 +231,7 @@ class Chan { num_users: this.num_users, }; // TODO: funny array mutation below might need to be reproduced + // static optionalProperties = ["userAway", "special", "data", "closed", "num_users"]; // return Object.keys(this).reduce((newChannel, prop) => { // if (Chan.optionalProperties.includes(prop)) { // if (this[prop] !== undefined || (Array.isArray(this[prop]) && this[prop].length)) {