This commit is contained in:
Vijay Kumar 2018-04-16 13:54:12 +05:30
parent 88aedac847
commit 5e30c0402f
1 changed files with 0 additions and 1 deletions

View File

@ -167,7 +167,6 @@ function mountSwagger(loopbackApplication, swaggerApp, opts) {
var nonElasticOperationIds = ['.prototype.__get__model', '.prototype.__get__user', '.prototype.__get__tenant'];
var nonElasticOperationId = nonElasticOperationIds.filter(opId => _.includes(result[newKey].get.operationId, opId))[0];
if (!nonElasticOperationId && _.endsWith(newKey, '/change-stream') && _.isArray(result[newKey].get.parameters) && _.findIndex(result[newKey].get.parameters, { name: 'getFrom', enum: ['elastic'] }) === -1) {
if (_.isArray(result[newKey].get.parameters) && _.findIndex(result[newKey].get.parameters, { name: 'getFrom', enum: ['elastic'] }) === -1) {
result[newKey].get.parameters.push({
name: 'getFrom',
in: 'query',