1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00

syntax fix..

This commit is contained in:
Ivar 2016-06-20 10:27:19 +02:00
parent 3ff7b671c8
commit 8dc5ad6772
7 changed files with 28 additions and 32 deletions

View File

@ -1,7 +1,7 @@
'use strict';
const eventType = require('../eventType');
const logger = require('../logger');
const NotFoundError = require('../error/NotFoundError');
const eventType = require('../eventType');
const logger = require('../logger');
const NotFoundError = require('../error/NotFoundError');
const FEATURE_COLUMNS = ['name', 'description', 'enabled', 'strategy_name', 'parameters'];
module.exports = function(db, eventStore) {

View File

@ -1,7 +1,7 @@
'use strict';
const eventType = require('../eventType');
const logger = require('../logger');
const NotFoundError = require('../error/NotFoundError');
const eventType = require('../eventType');
const logger = require('../logger');
const NotFoundError = require('../error/NotFoundError');
const STRATEGY_COLUMNS = ['name', 'description', 'parameters_template'];
module.exports = function(db, eventStore) {

View File

@ -1,6 +1,6 @@
'use strict';
const eventType = require('./eventType');
const diff = require('deep-diff').diff;
const eventType = require('./eventType');
const diff = require('deep-diff').diff;
const strategyTypes = [
eventType.strategyCreated,

View File

@ -1,8 +1,8 @@
'use strict';
const logger = require('../logger');
const eventType = require('../eventType');
const ValidationError = require('../error/ValidationError');
const validateRequest = require('../error/validateRequest');
const logger = require('../logger');
const eventType = require('../eventType');
const ValidationError = require('../error/ValidationError');
const validateRequest = require('../error/validateRequest');
module.exports = function (app, config) {
const featureDb = config.featureDb;

View File

@ -1,12 +1,12 @@
'use strict';
const Promise = require('bluebird');
const logger = require('../logger');
const eventType = require('../eventType');
const NameExistsError = require('../error/NameExistsError');
const NotFoundError = require('../error/NotFoundError');
const ValidationError = require('../error/ValidationError');
const validateRequest = require('../error/validateRequest');
const extractUser = require('../extractUser');
const Promise = require('bluebird');
const logger = require('../logger');
const eventType = require('../eventType');
const NameExistsError = require('../error/NameExistsError');
const NotFoundError = require('../error/NotFoundError');
const ValidationError = require('../error/ValidationError');
const validateRequest = require('../error/validateRequest');
const extractUser = require('../extractUser');
module.exports = function (app, config) {
const featureDb = config.featureDb;

View File

@ -1,7 +1,3 @@
/**
* TODO: we should also inject config and
* services to the routes to ease testing.
**/
'use strict';
exports.create = function (app, config) {

View File

@ -1,12 +1,12 @@
'use strict';
const Promise = require('bluebird');
const eventType = require('../eventType');
const logger = require('../logger');
const NameExistsError = require('../error/NameExistsError');
const ValidationError = require('../error/ValidationError');
const NotFoundError = require('../error/NotFoundError');
const validateRequest = require('../error/validateRequest');
const extractUser = require('../extractUser');
const Promise = require('bluebird');
const eventType = require('../eventType');
const logger = require('../logger');
const NameExistsError = require('../error/NameExistsError');
const ValidationError = require('../error/ValidationError');
const NotFoundError = require('../error/NotFoundError');
const validateRequest = require('../error/validateRequest');
const extractUser = require('../extractUser');
module.exports = function (app, config) {
const strategyDb = config.strategyDb;