diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/initializers/database.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 47604c6b0..705dec6da 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -109,8 +109,9 @@ function getModelFiles (modelDirectory: string, callback: (err: Error, filePaths | |||
109 | if (err) throw err | 109 | if (err) throw err |
110 | 110 | ||
111 | const directories = files.filter(function (directory) { | 111 | const directories = files.filter(function (directory) { |
112 | // For all models but not utils.js | 112 | // Find directories |
113 | if ( | 113 | if ( |
114 | directory.endsWith('.js.map') || | ||
114 | directory === 'index.js' || directory === 'index.ts' || | 115 | directory === 'index.js' || directory === 'index.ts' || |
115 | directory === 'utils.js' || directory === 'utils.ts' | 116 | directory === 'utils.js' || directory === 'utils.ts' |
116 | ) return false | 117 | ) return false |