From c498d04db4ddb1943c05dfdd52a331a197e51303 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 10 Jul 2022 00:16:52 +0200 Subject: [PATCH] Fixed the link schema --- models/Link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Link.js b/models/Link.js index 6ec4f3b..3cc0bd0 100644 --- a/models/Link.js +++ b/models/Link.js @@ -4,7 +4,7 @@ const crypto = require("crypto"); const LinkSchema = new mongoose.Schema({ token: { // The token used to log in into the socket type: String, - default: () => crypto.randomBytes(48).toString('hex') + default: () => crypto.randomBytes(32).toString('hex') }, user_id: { // The id of the user linked to the server type: mongoose.Schema.ObjectId,