remove old module.exports from server aswell

This commit is contained in:
Matteo Pagliazzi
2019-10-02 19:45:27 +02:00
parent e0a2528a4f
commit 45f7cf04ab
91 changed files with 116 additions and 127 deletions

View File

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