Skip to content

Commit 713e1e9

Browse files
author
Vikas Agarwal
committed
Using raw for nested models as well
1 parent e75bc52 commit 713e1e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/models/project.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,13 @@ module.exports = function defineProject(sequelize, DataTypes) {
169169
include: [{
170170
model: models.ProjectPhase,
171171
as: 'phases',
172+
raw,
172173
order: [['startDate', 'asc']],
173174
// where: phasesWhere,
174175
include: [{
175176
model: models.PhaseProduct,
176177
as: 'products',
178+
raw,
177179
}],
178180
}],
179181
});

0 commit comments

Comments
 (0)