Skip to content

Commit 16ba132

Browse files
committed
feat: update "project.terms" type to string
1 parent 7e12434 commit 16ba132

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

migrations/elasticsearch_sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function getRequestBody (indexName) {
304304
index: 'not_analyzed'
305305
},
306306
terms: {
307-
type: 'integer'
307+
type: 'string'
308308
},
309309
type: {
310310
type: 'string',

src/services/ProcessorServiceProject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ 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(),
3434
name: Joi.string().required(),
3535
description: Joi.string().allow(null).allow('').optional(),
3636
type: Joi.string().max(45).required(),

0 commit comments

Comments
 (0)