mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
remove old module.exports from server aswell
This commit is contained in:
@@ -19,7 +19,7 @@ const Schema = mongoose.Schema;
|
||||
const RESTRICTED_EMAIL_DOMAINS = Object.freeze(['habitica.com', 'habitrpg.com']);
|
||||
|
||||
// User schema definition
|
||||
let schema = new Schema({
|
||||
export default new Schema({
|
||||
apiToken: {
|
||||
$type: String,
|
||||
default: shared.uuid,
|
||||
@@ -613,6 +613,4 @@ let schema = new Schema({
|
||||
strict: true,
|
||||
minimize: false, // So empty objects are returned
|
||||
typeKey: '$type', // So that we can use fields named `type`
|
||||
});
|
||||
|
||||
module.exports = schema;
|
||||
});
|
||||
Reference in New Issue
Block a user