mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 04:15:38 -05:00
Disable Mongoose's version keys.
This commit is contained in:
parent
ef8a638e65
commit
1b3b19bc4f
@ -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