Fixed the link schema
This commit is contained in:
parent
2da6211502
commit
c498d04db4
@ -4,7 +4,7 @@ const crypto = require("crypto");
|
|||||||
const LinkSchema = new mongoose.Schema({
|
const LinkSchema = new mongoose.Schema({
|
||||||
token: { // The token used to log in into the socket
|
token: { // The token used to log in into the socket
|
||||||
type: String,
|
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
|
user_id: { // The id of the user linked to the server
|
||||||
type: mongoose.Schema.ObjectId,
|
type: mongoose.Schema.ObjectId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user