Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 2177a7c

Browse files
undo previous commit due to error in inserting data for sub resources
1 parent 2787856 commit 2177a7c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scripts/db/genData.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ async function insertIntoES (modelName, body) {
1616
const client = getESClient()
1717

1818
if (_.includes(_.keys(topResources), esResourceName)) {
19-
try {
20-
await client.indices.delete({
21-
index: topResources[esResourceName].index
22-
})
23-
} catch (error) {
24-
// Ignore error. Indice might not exist
25-
}
2619
await client.create({
2720
index: topResources[esResourceName].index,
2821
type: topResources[esResourceName].type,

0 commit comments

Comments
 (0)