Fixed the link schema

This commit is contained in:
Mathias Wagner 2022-07-10 00:16:52 +02:00
parent 2da6211502
commit c498d04db4
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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,