mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -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({
|
const Schema = mongoose.model('bannedWords', new mongoose.Schema({
|
||||||
_id: {type: String, required:true}
|
_id: {type: String, required:true}
|
||||||
}));
|
}, {versionKey: false}));
|
||||||
|
|
||||||
export default class bannedWords extends Schema {
|
export default class bannedWords extends Schema {
|
||||||
client: TClient;
|
client: TClient;
|
||||||
|
@ -4,7 +4,7 @@ import mongoose from 'mongoose';
|
|||||||
const Schema = mongoose.model('bonkCount', new mongoose.Schema({
|
const Schema = mongoose.model('bonkCount', new mongoose.Schema({
|
||||||
_id: {type: String, required:true},
|
_id: {type: String, required:true},
|
||||||
value: {type: Number, required:true}
|
value: {type: Number, required:true}
|
||||||
}));
|
}, {versionKey: false}));
|
||||||
|
|
||||||
export default class bonkCount extends Schema {
|
export default class bonkCount extends Schema {
|
||||||
client: TClient;
|
client: TClient;
|
||||||
|
@ -15,7 +15,7 @@ const Schema = mongoose.model('punishments', new mongoose.Schema({
|
|||||||
endTime: {type: Number},
|
endTime: {type: Number},
|
||||||
cancels: {type: Number},
|
cancels: {type: Number},
|
||||||
duration: {type: Number}
|
duration: {type: Number}
|
||||||
}));
|
}, {versionKey: false}));
|
||||||
|
|
||||||
export default class punishments extends Schema {
|
export default class punishments extends Schema {
|
||||||
client: TClient;
|
client: TClient;
|
||||||
|
@ -7,7 +7,7 @@ const Schema = mongoose.model('suggestion', new mongoose.Schema({
|
|||||||
user: {required:true, type: new mongoose.Schema({
|
user: {required:true, type: new mongoose.Schema({
|
||||||
tag: {type: String},
|
tag: {type: String},
|
||||||
_id: {type: String}
|
_id: {type: String}
|
||||||
})},
|
}, {versionKey: false})},
|
||||||
state: {type: String, required:true}
|
state: {type: String, required:true}
|
||||||
}, {versionKey: false}));
|
}, {versionKey: false}));
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ const Schema = mongoose.model('userLevels', new mongoose.Schema({
|
|||||||
_id: {type: String},
|
_id: {type: String},
|
||||||
messages: {type: Number, required: true},
|
messages: {type: Number, required: true},
|
||||||
level: {type: Number, required: true}
|
level: {type: Number, required: true}
|
||||||
}));
|
}, {versionKey: false}));
|
||||||
|
|
||||||
export default class userLevels extends Schema {
|
export default class userLevels extends Schema {
|
||||||
client: TClient;
|
client: TClient;
|
||||||
|
Loading…
Reference in New Issue
Block a user