mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
fix: move attachMiddlwares function so mongoose models have tx strings
This commit is contained in:
parent
d31dc6d9a9
commit
0150b355cb
1 changed files with 3 additions and 1 deletions
|
|
@ -2,7 +2,6 @@ import nconf from 'nconf';
|
|||
import logger from './libs/logger';
|
||||
import express from 'express';
|
||||
import http from 'http';
|
||||
import attachMiddlewares from './middlewares/index';
|
||||
import Bluebird from 'bluebird';
|
||||
|
||||
global.Promise = Bluebird;
|
||||
|
|
@ -13,8 +12,11 @@ const app = express();
|
|||
app.set('port', nconf.get('PORT'));
|
||||
|
||||
// Setup translations
|
||||
// Must come before attach middlwares so Mongoose validations can use translations
|
||||
import './libs/i18n';
|
||||
|
||||
import attachMiddlewares from './middlewares/index';
|
||||
|
||||
// Load config files
|
||||
import './libs/setupMongoose';
|
||||
import './libs/setupPassport';
|
||||
|
|
|
|||
Loading…
Reference in a new issue