diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
commit | df98563e2104b82b119c00a3cd83cd0dc1242d25 (patch) | |
tree | a9720bf01bac9ad5646bd3d3c9bc7653617afdad /server/initializers | |
parent | 46757b477c1adb5f98060d15998a3852e18902a6 (diff) | |
download | PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.gz PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.zst PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.zip |
Use typescript standard and lint all files
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/database.ts | 2 | ||||
-rw-r--r-- | server/initializers/migrator.ts | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 1662c1968..47604c6b0 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -144,7 +144,7 @@ function getModelFiles (modelDirectory: string, callback: (err: Error, filePaths | |||
144 | 144 | ||
145 | return eachCallback(null) | 145 | return eachCallback(null) |
146 | }) | 146 | }) |
147 | }, function(err: Error) { | 147 | }, function (err: Error) { |
148 | return callback(err, modelFilePaths) | 148 | return callback(err, modelFilePaths) |
149 | }) | 149 | }) |
150 | }) | 150 | }) |
diff --git a/server/initializers/migrator.ts b/server/initializers/migrator.ts index d72c60638..d8faaebc6 100644 --- a/server/initializers/migrator.ts +++ b/server/initializers/migrator.ts | |||
@@ -6,7 +6,6 @@ import * as Sequelize from 'sequelize' | |||
6 | import { database as db } from './database' | 6 | import { database as db } from './database' |
7 | import { LAST_MIGRATION_VERSION } from './constants' | 7 | import { LAST_MIGRATION_VERSION } from './constants' |
8 | import { logger } from '../helpers' | 8 | import { logger } from '../helpers' |
9 | import { ApplicationInstance } from '../models' | ||
10 | 9 | ||
11 | function migrate (finalCallback: (err: Error) => void) { | 10 | function migrate (finalCallback: (err: Error) => void) { |
12 | waterfall([ | 11 | waterfall([ |