mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
syntax fix..
This commit is contained in:
parent
3ff7b671c8
commit
8dc5ad6772
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const eventType = require('../eventType');
|
const eventType = require('../eventType');
|
||||||
const logger = require('../logger');
|
const logger = require('../logger');
|
||||||
const NotFoundError = require('../error/NotFoundError');
|
const NotFoundError = require('../error/NotFoundError');
|
||||||
const FEATURE_COLUMNS = ['name', 'description', 'enabled', 'strategy_name', 'parameters'];
|
const FEATURE_COLUMNS = ['name', 'description', 'enabled', 'strategy_name', 'parameters'];
|
||||||
|
|
||||||
module.exports = function(db, eventStore) {
|
module.exports = function(db, eventStore) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const eventType = require('../eventType');
|
const eventType = require('../eventType');
|
||||||
const logger = require('../logger');
|
const logger = require('../logger');
|
||||||
const NotFoundError = require('../error/NotFoundError');
|
const NotFoundError = require('../error/NotFoundError');
|
||||||
const STRATEGY_COLUMNS = ['name', 'description', 'parameters_template'];
|
const STRATEGY_COLUMNS = ['name', 'description', 'parameters_template'];
|
||||||
|
|
||||||
module.exports = function(db, eventStore) {
|
module.exports = function(db, eventStore) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const eventType = require('./eventType');
|
const eventType = require('./eventType');
|
||||||
const diff = require('deep-diff').diff;
|
const diff = require('deep-diff').diff;
|
||||||
|
|
||||||
const strategyTypes = [
|
const strategyTypes = [
|
||||||
eventType.strategyCreated,
|
eventType.strategyCreated,
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const logger = require('../logger');
|
const logger = require('../logger');
|
||||||
const eventType = require('../eventType');
|
const eventType = require('../eventType');
|
||||||
const ValidationError = require('../error/ValidationError');
|
const ValidationError = require('../error/ValidationError');
|
||||||
const validateRequest = require('../error/validateRequest');
|
const validateRequest = require('../error/validateRequest');
|
||||||
|
|
||||||
module.exports = function (app, config) {
|
module.exports = function (app, config) {
|
||||||
const featureDb = config.featureDb;
|
const featureDb = config.featureDb;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const Promise = require('bluebird');
|
const Promise = require('bluebird');
|
||||||
const logger = require('../logger');
|
const logger = require('../logger');
|
||||||
const eventType = require('../eventType');
|
const eventType = require('../eventType');
|
||||||
const NameExistsError = require('../error/NameExistsError');
|
const NameExistsError = require('../error/NameExistsError');
|
||||||
const NotFoundError = require('../error/NotFoundError');
|
const NotFoundError = require('../error/NotFoundError');
|
||||||
const ValidationError = require('../error/ValidationError');
|
const ValidationError = require('../error/ValidationError');
|
||||||
const validateRequest = require('../error/validateRequest');
|
const validateRequest = require('../error/validateRequest');
|
||||||
const extractUser = require('../extractUser');
|
const extractUser = require('../extractUser');
|
||||||
|
|
||||||
module.exports = function (app, config) {
|
module.exports = function (app, config) {
|
||||||
const featureDb = config.featureDb;
|
const featureDb = config.featureDb;
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
/**
|
|
||||||
* TODO: we should also inject config and
|
|
||||||
* services to the routes to ease testing.
|
|
||||||
**/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
exports.create = function (app, config) {
|
exports.create = function (app, config) {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const Promise = require('bluebird');
|
const Promise = require('bluebird');
|
||||||
const eventType = require('../eventType');
|
const eventType = require('../eventType');
|
||||||
const logger = require('../logger');
|
const logger = require('../logger');
|
||||||
const NameExistsError = require('../error/NameExistsError');
|
const NameExistsError = require('../error/NameExistsError');
|
||||||
const ValidationError = require('../error/ValidationError');
|
const ValidationError = require('../error/ValidationError');
|
||||||
const NotFoundError = require('../error/NotFoundError');
|
const NotFoundError = require('../error/NotFoundError');
|
||||||
const validateRequest = require('../error/validateRequest');
|
const validateRequest = require('../error/validateRequest');
|
||||||
const extractUser = require('../extractUser');
|
const extractUser = require('../extractUser');
|
||||||
|
|
||||||
module.exports = function (app, config) {
|
module.exports = function (app, config) {
|
||||||
const strategyDb = config.strategyDb;
|
const strategyDb = config.strategyDb;
|
||||||
|
Loading…
Reference in New Issue
Block a user