summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTom Smeding <t.j.smeding@uu.nl>2022-09-08 17:40:55 +0200
committerTom Smeding <t.j.smeding@uu.nl>2022-09-08 17:40:55 +0200
commit9ad342d1e711b5b19477ad56db44b46ad1cb024f (patch)
tree97a2297745ac840fbe7cc6526b3b72fb558e2b77 /server.js
parent79a83de5d28750095cf3af5e933af28872e7e3eb (diff)
Sort list on server startupHEADmaster
Diffstat (limited to 'server.js')
-rwxr-xr-xserver.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.js b/server.js
index b11a766..c5ed3ad 100755
--- a/server.js
+++ b/server.js
@@ -35,6 +35,7 @@ class Database {
this.#filename = filename;
this.#list = JSON.parse(fs.readFileSync(this.#filename));
this.#lastbackup = new Date();
+ this.#sort();
}
add_new(votes, string) {