Skip to content

Commit

Permalink
update updated field datetime when editing item
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhanson committed Mar 22, 2020
1 parent 23de6a1 commit a945bfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ function buildFieldsFilter(parameters) {

async function editItem(itemId, updateFields) {
const client = await esClient()
updateFields.properties.updated = new Date().toISOString()
const response = await client.update({
index: ITEMS_INDEX,
id: itemId,
Expand Down

0 comments on commit a945bfb

Please sign in to comment.