Skip to content

Commit

Permalink
Removing unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Oct 26, 2020
1 parent 8a41d26 commit ac61133
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,6 @@ if (doc['task.runAt'].size()!=0) {
},
};

export const updateFields = (fieldUpdates: {
[field: string]: string | number | Date;
}): ScriptClause => ({
source: Object.keys(fieldUpdates)
.map((field) => `ctx._source.task.${field}=params.${field};`)
.join(' '),
lang: 'painless',
params: fieldUpdates,
});

export const updateFieldsAndMarkAsFailed = (
fieldUpdates: {
[field: string]: string | number | Date;
Expand Down

0 comments on commit ac61133

Please sign in to comment.