projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62be8e1
)
Excluse .js.map when scanning models/ directory
author
Chocobozzz
<florian.bigard@gmail.com>
Sat, 24 Jun 2017 08:30:23 +0000
(10:30 +0200)
committer
Chocobozzz
<florian.bigard@gmail.com>
Sat, 24 Jun 2017 08:30:23 +0000
(10:30 +0200)
server/initializers/database.ts
patch
|
blob
|
history
diff --git
a/server/initializers/database.ts
b/server/initializers/database.ts
index 47604c6b014c2aa9a66b13ae545e21af46d48b42..705dec6da402300c68ad30fab14c3f632a728718 100644
(file)
--- a/
server/initializers/database.ts
+++ b/
server/initializers/database.ts
@@
-109,8
+109,9
@@
function getModelFiles (modelDirectory: string, callback: (err: Error, filePaths
if (err) throw err
const directories = files.filter(function (directory) {
- // F
or all models but not utils.j
s
+ // F
ind directorie
s
if (
+ directory.endsWith('.js.map') ||
directory === 'index.js' || directory === 'index.ts' ||
directory === 'utils.js' || directory === 'utils.ts'
) return false