Changed the threshold to string instead of number because my code dislike non-string stuff.
This commit is contained in:
@@ -16,7 +16,7 @@ const NewUserAction = new mongoose.Schema(
|
||||
required: true,
|
||||
},
|
||||
threshold: {
|
||||
type: mongoose.SchemaTypes.Number,
|
||||
type: mongoose.SchemaTypes.String,
|
||||
required: true,
|
||||
},
|
||||
duration: {
|
||||
|
||||
@@ -16,7 +16,7 @@ const VerifyFailAction = new mongoose.Schema(
|
||||
required: true,
|
||||
},
|
||||
threshold: {
|
||||
type: mongoose.SchemaTypes.Number,
|
||||
type: mongoose.SchemaTypes.String,
|
||||
required: true,
|
||||
},
|
||||
duration: {
|
||||
|
||||
Reference in New Issue
Block a user