diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 2 | ||||
-rw-r--r-- | server/initializers/database.ts | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 6dcb4bb91..b476ef928 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -2,7 +2,7 @@ import * as config from 'config' | |||
2 | import { join } from 'path' | 2 | import { join } from 'path' |
3 | 3 | ||
4 | // Do not use barrels, remain constants as independent as possible | 4 | // Do not use barrels, remain constants as independent as possible |
5 | import { root, isTestInstance } from '../helpers/utils' | 5 | import { root, isTestInstance } from '../helpers/core-utils' |
6 | 6 | ||
7 | // --------------------------------------------------------------------------- | 7 | // --------------------------------------------------------------------------- |
8 | 8 | ||
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 78ca5ab84..0ab9e98db 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -5,7 +5,7 @@ import * as Sequelize from 'sequelize' | |||
5 | import { CONFIG } from './constants' | 5 | import { CONFIG } from './constants' |
6 | // Do not use barrel, we need to load database first | 6 | // Do not use barrel, we need to load database first |
7 | import { logger } from '../helpers/logger' | 7 | import { logger } from '../helpers/logger' |
8 | import { isTestInstance } from '../helpers/utils' | 8 | import { isTestInstance } from '../helpers/core-utils' |
9 | import { | 9 | import { |
10 | ApplicationModel, | 10 | ApplicationModel, |
11 | AuthorModel, | 11 | AuthorModel, |
@@ -80,9 +80,9 @@ database.init = function (silent: boolean, callback: (err: Error) => void) { | |||
80 | files.filter(function (file) { | 80 | files.filter(function (file) { |
81 | // For all models but not utils.js | 81 | // For all models but not utils.js |
82 | if ( | 82 | if ( |
83 | file === 'index.js' || | 83 | file === 'index.js' || file === 'index.ts' || |
84 | file === 'utils.js' || | 84 | file === 'utils.js' || file === 'utils.ts' || |
85 | file.endsWith('-interface.js') || | 85 | file.endsWith('-interface.js') || file.endsWith('-interface.ts') || |
86 | file.endsWith('.js.map') | 86 | file.endsWith('.js.map') |
87 | ) return false | 87 | ) return false |
88 | 88 | ||