1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

change index definition

This commit is contained in:
Peter Clement 2021-08-27 14:10:19 +01:00
parent ee830d0e85
commit e03244e44e
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ exports.validate = async ({ appId, tableId, row, table }) => {
}
let res
// Validate.js doesn't seem to handle array of array very well
// Validate.js doesn't seem to handle array
if (table.schema[fieldName].type === FieldTypes.ARRAY) {
row[fieldName].map(val => {
if (!constraints.inclusion.includes(val)) {

View file

@ -102,7 +102,7 @@ exports.createAllSearchIndex = async appId => {
if (Array.isArray(input[key])) {
for (let val in input[key]) {
// eslint-disable-next-line no-undef
index(`${idxKey}`, input[key][val], {
index(idxKey, input[key][val], {
store: true,
})
}