Skip to content

Commit 0ba1cee

Browse files
author
vikasrohit
authored
Merge pull request #54 from topcoder-platform/develop
Beta Prod Release - Project Defaults
2 parents 2a9ce07 + e0c40ee commit 0ba1cee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

migrations/elasticsearch_sync.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,10 @@ function getRequestBody (indexName) {
304304
index: 'not_analyzed'
305305
},
306306
terms: {
307-
type: 'integer'
307+
type: 'string'
308+
},
309+
groups: {
310+
type: 'string'
308311
},
309312
type: {
310313
type: 'string',

src/services/ProcessorServiceProject.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ function createSchema () {
3030
id: Joi.number().integer().positive().required(),
3131
createdAt: Joi.date().required(),
3232
updatedAt: Joi.date().required(),
33-
terms: Joi.array().items(Joi.number().positive()).optional(),
33+
terms: Joi.array().items(Joi.string()).optional(),
34+
groups: Joi.array().items(Joi.string()).optional(),
3435
name: Joi.string().required(),
3536
description: Joi.string().allow(null).allow('').optional(),
3637
type: Joi.string().max(45).required(),

0 commit comments

Comments
 (0)