aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-16 14:32:15 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-16 14:32:15 +0200
commitdf98563e2104b82b119c00a3cd83cd0dc1242d25 (patch)
treea9720bf01bac9ad5646bd3d3c9bc7653617afdad /server/initializers
parent46757b477c1adb5f98060d15998a3852e18902a6 (diff)
downloadPeerTube-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.ts2
-rw-r--r--server/initializers/migrator.ts1
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'
6import { database as db } from './database' 6import { database as db } from './database'
7import { LAST_MIGRATION_VERSION } from './constants' 7import { LAST_MIGRATION_VERSION } from './constants'
8import { logger } from '../helpers' 8import { logger } from '../helpers'
9import { ApplicationInstance } from '../models'
10 9
11function migrate (finalCallback: (err: Error) => void) { 10function migrate (finalCallback: (err: Error) => void) {
12 waterfall([ 11 waterfall([