Skip to content

Commit

Permalink
update mapping check script for new index
Browse files Browse the repository at this point in the history
  • Loading branch information
charmingduchess committed Nov 27, 2024
1 parent 4804930 commit e5b9a1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/mapping-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ kmsSetCredentials(awsCreds)
exports.getMapping = async (index) => {
const client = await esClient.client()
const resp = await client.indices.getMapping({ index })
return resp.body[index].mappings.resource.properties
return resp.body[index].mappings.properties
}

/**
Expand Down
5 changes: 2 additions & 3 deletions test/unit/scripts-mapping-check.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ describe('scripts/mapping-check', () => {
return {
body: {
[index]: {
mappings: {
resource: { properties: fakeMappings }
}
mappings: { properties: fakeMappings }

}
}
}
Expand Down

0 comments on commit e5b9a1d

Please sign in to comment.