mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
Resolve "Retype mapping generation using @elastic/elasticsearch"
This commit is contained in:
committed by
Rainer Killinger
parent
fc850fe7ac
commit
d90416e201
@@ -12,7 +12,6 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {ElasticsearchDataType} from '../../src/config/typemap';
|
||||
import {generateTemplate} from '../../src/mapping';
|
||||
import path from 'path';
|
||||
import {expect} from 'chai';
|
||||
@@ -121,10 +120,10 @@ export class MapAggTest {
|
||||
};
|
||||
const maps = map.maps ?? {};
|
||||
maps.type = {
|
||||
type: ElasticsearchDataType.text,
|
||||
type: 'text',
|
||||
};
|
||||
maps.creation_date = {
|
||||
type: ElasticsearchDataType.date,
|
||||
type: 'date',
|
||||
};
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore can be used to index
|
||||
|
||||
Reference in New Issue
Block a user