aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/database.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r--server/initializers/database.ts8
1 files changed, 4 insertions, 4 deletions
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'
5import { CONFIG } from './constants' 5import { 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
7import { logger } from '../helpers/logger' 7import { logger } from '../helpers/logger'
8import { isTestInstance } from '../helpers/utils' 8import { isTestInstance } from '../helpers/core-utils'
9import { 9import {
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