1
0
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:
AnxietyisReal 2023-02-27 18:14:54 +11:00
parent b32f57c0d8
commit 1d8c89e72e
5 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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}));

View File

@ -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;