aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker.ts2
-rw-r--r--server/initializers/database.ts6
-rw-r--r--server/initializers/migrator.ts2
3 files changed, 5 insertions, 5 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts
index fb69e05fc..e4ca26f9c 100644
--- a/server/initializers/checker.ts
+++ b/server/initializers/checker.ts
@@ -45,7 +45,7 @@ function checkFFmpeg () {
45 if (CONFIG.TRANSCODING.ENABLED === false) return undefined 45 if (CONFIG.TRANSCODING.ENABLED === false) return undefined
46 46
47 const canEncode = [ 'libx264' ] 47 const canEncode = [ 'libx264' ]
48 canEncode.forEach(function (codec) { 48 canEncode.forEach(codec => {
49 if (codecs[codec] === undefined) { 49 if (codecs[codec] === undefined) {
50 throw new Error('Unknown codec ' + codec + ' in FFmpeg.') 50 throw new Error('Unknown codec ' + codec + ' in FFmpeg.')
51 } 51 }
diff --git a/server/initializers/database.ts b/server/initializers/database.ts
index 6e3a8d009..9e691bf1d 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -60,7 +60,7 @@ const sequelize = new Sequelize(dbname, username, password, {
60 port: CONFIG.DATABASE.PORT, 60 port: CONFIG.DATABASE.PORT,
61 benchmark: isTestInstance(), 61 benchmark: isTestInstance(),
62 62
63 logging: function (message: string, benchmark: number) { 63 logging: (message: string, benchmark: number) => {
64 let newMessage = message 64 let newMessage = message
65 if (benchmark !== undefined) { 65 if (benchmark !== undefined) {
66 newMessage += ' | ' + benchmark + 'ms' 66 newMessage += ' | ' + benchmark + 'ms'
@@ -72,7 +72,7 @@ const sequelize = new Sequelize(dbname, username, password, {
72 72
73database.sequelize = sequelize 73database.sequelize = sequelize
74 74
75database.init = function (silent: boolean) { 75database.init = (silent: boolean) => {
76 const modelDirectory = join(__dirname, '..', 'models') 76 const modelDirectory = join(__dirname, '..', 'models')
77 77
78 return getModelFiles(modelDirectory).then(filePaths => { 78 return getModelFiles(modelDirectory).then(filePaths => {
@@ -105,7 +105,7 @@ export {
105function getModelFiles (modelDirectory: string) { 105function getModelFiles (modelDirectory: string) {
106 return readdirPromise(modelDirectory) 106 return readdirPromise(modelDirectory)
107 .then(files => { 107 .then(files => {
108 const directories: string[] = files.filter(function (directory) { 108 const directories: string[] = files.filter(directory => {
109 // Find directories 109 // Find directories
110 if ( 110 if (
111 directory.endsWith('.js.map') || 111 directory.endsWith('.js.map') ||
diff --git a/server/initializers/migrator.ts b/server/initializers/migrator.ts
index 4b3be6d16..71a656c59 100644
--- a/server/initializers/migrator.ts
+++ b/server/initializers/migrator.ts
@@ -64,7 +64,7 @@ function getMigrationScripts () {
64 script: string 64 script: string
65 }[] = [] 65 }[] = []
66 66
67 files.forEach(function (file) { 67 files.forEach(file => {
68 // Filename is something like 'version-blabla.js' 68 // Filename is something like 'version-blabla.js'
69 const version = file.split('-')[0] 69 const version = file.split('-')[0]
70 filesToMigrate.push({ 70 filesToMigrate.push({