mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
Disable Mongoose's version keys.
This commit is contained in:
parent
b32f57c0d8
commit
1d8c89e72e
@ -3,7 +3,7 @@ import mongoose from 'mongoose';
|
||||
|
||||
const Schema = mongoose.model('bannedWords', new mongoose.Schema({
|
||||
_id: {type: String, required:true}
|
||||
}));
|
||||
}, {versionKey: false}));
|
||||
|
||||
export default class bannedWords extends Schema {
|
||||
client: TClient;
|
||||
|
@ -4,7 +4,7 @@ import mongoose from 'mongoose';
|
||||
const Schema = mongoose.model('bonkCount', new mongoose.Schema({
|
||||
_id: {type: String, required:true},
|
||||
value: {type: Number, required:true}
|
||||
}));
|
||||
}, {versionKey: false}));
|
||||
|
||||
export default class bonkCount extends Schema {
|
||||
client: TClient;
|
||||
|
@ -15,7 +15,7 @@ const Schema = mongoose.model('punishments', new mongoose.Schema({
|
||||
endTime: {type: Number},
|
||||
cancels: {type: Number},
|
||||
duration: {type: Number}
|
||||
}));
|
||||
}, {versionKey: false}));
|
||||
|
||||
export default class punishments extends Schema {
|
||||
client: TClient;
|
||||
|
@ -7,7 +7,7 @@ const Schema = mongoose.model('suggestion', new mongoose.Schema({
|
||||
user: {required:true, type: new mongoose.Schema({
|
||||
tag: {type: String},
|
||||
_id: {type: String}
|
||||
})},
|
||||
}, {versionKey: false})},
|
||||
state: {type: String, required:true}
|
||||
}, {versionKey: false}));
|
||||
|
||||
|
@ -6,7 +6,7 @@ const Schema = mongoose.model('userLevels', new mongoose.Schema({
|
||||
_id: {type: String},
|
||||
messages: {type: Number, required: true},
|
||||
level: {type: Number, required: true}
|
||||
}));
|
||||
}, {versionKey: false}));
|
||||
|
||||
export default class userLevels extends Schema {
|
||||
client: TClient;
|
||||
|
Loading…
Reference in New Issue
Block a user