Skip to content

Commit ba36b2f

Browse files
author
Vikas Agarwal
committed
checking if phases are returned successfully with raw being true
1 parent 713e1e9 commit ba36b2f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/models/project.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,11 @@ module.exports = function defineProject(sequelize, DataTypes) {
169169
include: [{
170170
model: models.ProjectPhase,
171171
as: 'phases',
172-
raw,
173172
order: [['startDate', 'asc']],
174173
// where: phasesWhere,
175174
include: [{
176175
model: models.PhaseProduct,
177176
as: 'products',
178-
raw,
179177
}],
180178
}],
181179
});

src/routes/admin/project-index-create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = [
5151
logger.debug('fields', fields);
5252

5353
const eClient = util.getElasticSearchClient();
54-
return models.Project.findProjectRange(models, projectIdStart, projectIdEnd, fields, true)
54+
return models.Project.findProjectRange(models, projectIdStart, projectIdEnd, fields, false)
5555
.then((_projects) => {
5656
const projects = _projects.map((_project) => {
5757
const project = _project;

0 commit comments

Comments
 (0)