diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-25 09:47:49 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-25 09:47:49 +0100 |
commit | f83e27958109b829ba6326efda0679cc032003e5 (patch) | |
tree | 822a588bc0d3466712aad07cef17ad80906060a8 /server/initializers | |
parent | b769007f733769d3afe2d29a3eb23e2e7693f301 (diff) | |
download | PeerTube-f83e27958109b829ba6326efda0679cc032003e5.tar.gz PeerTube-f83e27958109b829ba6326efda0679cc032003e5.tar.zst PeerTube-f83e27958109b829ba6326efda0679cc032003e5.zip |
Fix standard lint
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.js | 1 | ||||
-rw-r--r-- | server/initializers/migrations/0005-example.js | 22 |
2 files changed, 11 insertions, 12 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 6f39b65da..fc501845a 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -1,7 +1,6 @@ | |||
1 | 'use strict' | 1 | 'use strict' |
2 | 2 | ||
3 | const config = require('config') | 3 | const config = require('config') |
4 | const maxBy = require('lodash/maxBy') | ||
5 | const path = require('path') | 4 | const path = require('path') |
6 | 5 | ||
7 | // --------------------------------------------------------------------------- | 6 | // --------------------------------------------------------------------------- |
diff --git a/server/initializers/migrations/0005-example.js b/server/initializers/migrations/0005-example.js index 481c2c4dd..cedc42919 100644 --- a/server/initializers/migrations/0005-example.js +++ b/server/initializers/migrations/0005-example.js | |||
@@ -1,14 +1,14 @@ | |||
1 | /* | 1 | // /* |
2 | This is just an example. | 2 | // This is just an example. |
3 | */ | 3 | // */ |
4 | 4 | ||
5 | const db = require('../database') | 5 | // const db = require('../database') |
6 | 6 | ||
7 | // options contains the transaction | 7 | // // options contains the transaction |
8 | exports.up = function (options, callback) { | 8 | // exports.up = function (options, callback) { |
9 | // db.Application.create({ migrationVersion: 42 }, { transaction: options.transaction }).asCallback(callback) | 9 | // db.Application.create({ migrationVersion: 42 }, { transaction: options.transaction }).asCallback(callback) |
10 | } | 10 | // } |
11 | 11 | ||
12 | exports.down = function (options, callback) { | 12 | // exports.down = function (options, callback) { |
13 | throw new Error('Not implemented.') | 13 | // throw new Error('Not implemented.') |
14 | } | 14 | // } |