Skip to content

Commit 61f1b90

Browse files
author
Vikas Agarwal
committed
Possible fix for indexing issues for members
1 parent ba36b2f commit 61f1b90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ module.exports = [
5454
return models.Project.findProjectRange(models, projectIdStart, projectIdEnd, fields, false)
5555
.then((_projects) => {
5656
const projects = _projects.map((_project) => {
57-
const project = _project;
58-
if (!project) {
57+
if (!_project) {
5958
return Promise.resolve(null);
6059
}
60+
const project = _project.toJSON();
6161
logger.debug('phases', project.phases);
6262
if (project.phases) {
6363
// removs the delete audit fields from the index data

0 commit comments

Comments
 (0)