Skip to content

Commit

Permalink
fix common and discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
dtseytlin committed Mar 22, 2016
1 parent 80ef3e1 commit f7f8b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions backend/app/controllers/discussions.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,8 @@ function* updateProductUOAStep(object) {
action: 'update',
object: 'productUOA',
entity: null,
entities: {productId: object.productId, uoaId: object.uoaId, currentStepId: object.stepId},
entities: JSON.stringify({productId: object.productId, uoaId: object.uoaId, currentStepId: object.stepId}),
quantity: 1,
info: 'Update current step for survey'
});
} else {
Expand Down Expand Up @@ -710,7 +711,8 @@ function* checkUpdateProductUOAStep(object) {
action: 'update',
object: 'productUOA',
entity: null,
entities: {productId: object.productId, uoaId: object.uoaId, currentStepId: object.stepId},
entities: JSON.stringify({productId: object.productId, uoaId: object.uoaId, currentStepId: object.stepId}),
quantity: 1,
info: 'Update current step for survey (when resolving)'
});
} else {
Expand Down
3 changes: 0 additions & 3 deletions backend/app/queries/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ var
Notification = require('app/models/notifications'),
Organization = require('app/models/organizations'),
User = require('app/models/users'),

notifications = require('app/controllers/notifications'),

co = require('co'),
sql = require('sql'),
Query = require('app/util').Query,
Expand Down

0 comments on commit f7f8b11

Please sign in to comment.